Expand description
§yami - Minimal, Zero-Copy YAML Parser for Rust
yami is a lightweight, zero-copy YAML parser designed for minimal allocations
and strict, unambiguous parsing semantics. Scalars borrow directly from the
input string as &'a str, eliminating heap string allocations during parsing.
§Background & Motivation
Standard YAML parsers in Rust (such as serde_yaml) enforce DeserializeOwned
trait bounds that prevent deserializing directly into types borrowing string slices
(&'a str) from the input document. This limitation is discussed in
dtolnay/serde-yaml#94 and prompted
the call for a minimal zero-copy YAML parser in
dtolnay/request-for-implementation#9.
yami provides a direct, zero-copy AST representation where every scalar is an
unallocated &'a str slice into the source text.
§Core Types
Re-exports§
pub use ast::Entry;pub use ast::Yaml;pub use error::ErrorKind;pub use error::Position;pub use error::Result;pub use error::YamlError;pub use parser::parse;pub use scanner::Line;pub use scanner::Scanner;