Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 845 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 845 Bytes

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",
//   },
// }