โ๏ธ toml
TOML v1.0.0 Parser
~350 lines
~30 functions
v1.0.0
๐ Overview
TOML (Tom's Obvious Minimal Language) parser for configuration files. Human-friendly with support for strings, integers, floats, booleans, arrays, and tables.
๐ Quick Start
import toml
let config = toml.parse("
[database]
host = \"localhost\"
port = 5432
[server]
bind = \"0.0.0.0:8080\"
workers = 4
")?
let host = config.get("database.host")?
let port = config.get_int("database.port")?
println("DB: {}:{}", host, port)