#encoding #toml #no-std

no-std toml_parser

Yet another format-preserving TOML parser

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

Download history 1839873/week @ 2025-10-23 1951743/week @ 2025-10-30 2100823/week @ 2025-11-06 2215281/week @ 2025-11-13 2283673/week @ 2025-11-20 1930574/week @ 2025-11-27 2362908/week @ 2025-12-04 2452765/week @ 2025-12-11 2196047/week @ 2025-12-18 1408884/week @ 2025-12-25 2111012/week @ 2026-01-01 2937665/week @ 2026-01-08 3007090/week @ 2026-01-15 3343816/week @ 2026-01-22 3386082/week @ 2026-01-29 3651739/week @ 2026-02-05

13,944,813 downloads per month
Used in 11,785 crates (12 directly)

MIT/Apache

225KB
6.5K SLoC

TOML lexer and parser

Characteristics:

  • Error recovery
  • Lazy validation
  • forbid(unsafe) by default, requiring the unsafe feature otherwise
  • no_std support, including putting users in charge of allocation choices (including not allocating)

Full parsing is broken into three phases:

  1. [Lexing tokens][lexer]
  2. [Parsing tokens][parser] (push parser)
  3. Organizing the physical layout into the logical layout, including [decoding keys and values][decoder]

toml_parser

Documentation License Crates Status

Zero-copy parsing of TOML

License

Licensed under either of

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