1 unstable release

0.1.0 Feb 1, 2024

#9 in #lua-table

Download history 99/week @ 2025-09-28 7/week @ 2025-10-05 1/week @ 2025-10-19 57/week @ 2025-10-26 1/week @ 2025-11-23 26/week @ 2025-11-30 4/week @ 2025-12-07 52/week @ 2025-12-28

56 downloads per month

Apache-2.0

7KB
130 lines

toml2lua

Convert TOML to Lua table

Example:

use toml2lua::parse;

let toml = r#"
string = "toml2lua",
int = 420,
bool = true,

[object]
key = "value"
"#;

let lua = parse(toml).unwrap();
// Output:
// {
//   ["string"] = "toml2lua",
//   ["int"] = 420,
//   ["bool"] = true,
//   ["object"] = {
//	    ["key"] = "value",
//   },
// }

Made with <3 by Dervex


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

Dependencies

~1.2–1.7MB
~33K SLoC