toml2lua

Crates.iotoml2lua
lib.rstoml2lua
version0.1.0
sourcesrc
created_at2024-02-01 12:25:39.18324
updated_at2024-02-01 12:25:39.18324
descriptionConvert TOML to Lua table
homepage
repositoryhttps://github.com/DervexHero/toml2lua
max_upload_size
id1123071
size17,486
Dervex (DervexDev)

documentation

README

toml2lua

Convert TOML to Lua table

Version badge Downloads badge License badge Docs badge

Example:

use toml2lua::parse;

let toml = r#"
string = "abc"
int = 123
bool = true

[object]
key = "value"
"#;

let lua = parse(toml).unwrap();
// Output:
// {
//   ["string"] = "abc",
//   ["int"] = 123,
//   ["bool"] = true,
//   ["object"] = {
//     ["key"] = "value",
//   },
// }
Commit count: 0

cargo fmt