Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dervexdev/toml2lua

Convert TOML to Lua table
https://github.com/dervexdev/toml2lua

lua parser rust table toml

Last synced: about 1 month ago
JSON representation

Convert TOML to Lua table

Awesome Lists containing this project

README

        

# toml2lua
Convert TOML to Lua table


Version badge
Downloads badge
License badge
Docs badge

## Example:
```rust
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",
// },
// }
```