Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dervexdev/toml2lua
- Owner: DervexDev
- License: apache-2.0
- Created: 2024-02-01T12:24:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T12:24:32.000Z (11 months ago)
- Last Synced: 2024-08-09T15:52:35.473Z (5 months ago)
- Topics: lua, parser, rust, table, toml
- Language: Rust
- Homepage: https://crates.io/crates/toml2lua
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# toml2lua
Convert TOML to Lua table## 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",
// },
// }
```