Crate toml2lua

source ·
Expand description

§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

Functions§

  • Parse TOML string into a Lua table