14 stable releases
Uses new Rust 2024
| 1.1.2+spec-1.1.0 | Apr 1, 2026 |
|---|---|
| 1.1.1+spec-1.1.0 | Mar 31, 2026 |
| 1.0.9+spec-1.1.0 | Feb 16, 2026 |
| 1.0.6+spec-1.1.0 | Dec 18, 2025 |
| 1.0.1 | Jul 11, 2025 |
#314 in Parser implementations
24,979,043 downloads per month
Used in 14,449 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.9–2.6MB
~58K SLoC