Skip to content

DervexDev/toml2lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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