9 stable releases
| new 1.0.8+spec-1.1.0 | Feb 12, 2026 |
|---|---|
| 1.0.7+spec-1.1.0 | Feb 10, 2026 |
| 1.0.6+spec-1.1.0 | Dec 18, 2025 |
| 1.0.4 | Oct 9, 2025 |
| 1.0.1 | Jul 11, 2025 |
#590 in Parser implementations
13,944,813 downloads per month
Used in 11,785 crates
(12 directly)
225KB
6.5K
SLoC
TOML lexer and parser
Characteristics:
- Error recovery
- Lazy validation
forbid(unsafe)by default, requiring theunsafefeature otherwiseno_stdsupport, including putting users in charge of allocation choices (including not allocating)
Full parsing is broken into three phases:
- [Lexing tokens][lexer]
- [Parsing tokens][parser] (push parser)
- Organizing the physical layout into the logical layout, including [decoding keys and values][decoder]
toml_parser
Zero-copy parsing of TOML
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/license/mit)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0.8–3MB
~63K SLoC