https://github.com/murphsicles/toml
TOML parsing/encoding for Zeta — toml::from_str, to_string, Value enum
https://github.com/murphsicles/toml
Last synced: 22 days ago
JSON representation
TOML parsing/encoding for Zeta — toml::from_str, to_string, Value enum
- Host: GitHub
- URL: https://github.com/murphsicles/toml
- Owner: murphsicles
- License: mit
- Created: 2026-05-15T20:55:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:28:26.000Z (3 months ago)
- Last Synced: 2026-05-15T23:54:01.250Z (3 months ago)
- Size: 44.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @encoding/toml — TOML Parsing/Encoding for Zeta
Auto-converted from [toml](https://crates.io/crates/toml) v1.1.2 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
- **Deserialize** — `toml::from_str` for parsing TOML into typed structs
- **Serialize** — `toml::to_string` for encoding structs as TOML
- **Value API** — dynamic `Value` enum for exploring TOML documents
- **Pretty print** — `toml::to_string_pretty` for human-readable output
- **Spanned values** — preserve span information for error reporting
## Usage
```zeta
use @encoding/toml;
let config: Config = toml::from_str(r#"
[server]
host = "localhost"
port = 8080
"#).unwrap();
```
## Stats: ~5,113 lines, 0 unsupported items
## License: MIT