Crate toml_parser

Crate toml_parser 

Source
Expand description

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
  2. Parsing tokens (push parser)
  3. Organizing the physical layout into the logical layout, including decoding keys and values

Modulesยง

decoder
Decode raw TOML values into Rust native types
error ๐Ÿ”’
lexer
Lex TOML tokens
macros ๐Ÿ”’
parser
A TOML push parser
source ๐Ÿ”’

Structsยง

ParseError
Raw
A slice of Source
Source
Data encoded as TOML
Span
Location within the Source

Enumsยง

Expected

Traitsยง

ErrorSink
SourceIndex
A helper trait used for indexing operations on Source