| Crates.io | toml2lua |
| lib.rs | toml2lua |
| version | 0.1.0 |
| created_at | 2024-02-01 12:25:39.18324+00 |
| updated_at | 2024-02-01 12:25:39.18324+00 |
| description | Convert TOML to Lua table |
| homepage | |
| repository | https://github.com/DervexHero/toml2lua |
| max_upload_size | |
| id | 1123071 |
| size | 17,486 |
Convert TOML to Lua table
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",
// },
// }