For a library for parsing YAML in Rust, the first results are dtolnay/serde-yaml (This library is the standard, idiomatic choice for YAML in the Rust ecosystem, providing deep Serde integration for high-performance serialization and deserialization with robust error reporting), rkyv/rkyv (This is a high-performance binary serialization framework for memory-mapped data, but it does not support the YAML format or its specific parsing requirements) and geal/nom (Nom is a general-purpose parser combinator framework used to build custom parsers, rather than a specialized library for YAML parsing and serialization). serde-rs/serde and google/flatbuffers round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
We curate open-source GitHub repositories matching “best rust yaml libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Serde-yaml is a serialization library for the Rust programming language that facilitates the conversion of complex data structures into YAML format and the deserialization of YAML text into strongly typed objects. It functions as a data format converter, enabling the transformation of structured information between native language types and human-readable configuration files. The library integrates with the standard Rust serialization ecosystem to map arbitrary data types to and from the YAML format. By utilizing trait-based data mapping, it allows developers to manage application settings an
This library is the standard, idiomatic choice for YAML in the Rust ecosystem, providing deep Serde integration for high-performance serialization and deserialization with robust error reporting.
rkyv is a zero-copy deserialization framework for Rust that provides a binary serialization format for memory-mappable data archives. It allows complex data structures to be mapped to bytes and accessed directly from a buffer without allocating new memory or copying data. The project enables the serialization of polymorphic types and trait objects, maintaining their dynamic behavior and structure within the binary form. It utilizes relative-pointer addressing and byte-aligned structure packing to ensure data remains valid regardless of where it is loaded in memory. The framework covers high-
This is a high-performance binary serialization framework for memory-mapped data, but it does not support the YAML format or its specific parsing requirements.
nom is a Rust parser combinator framework used to build complex parsers for binary and text data. It functions as an abstract syntax tree generator and a bit-level binary parser, allowing users to construct structured data by combining small, reusable parsing functions. The framework provides specialized support for zero-copy binary parsing, extracting data as slices from raw byte arrays to avoid memory allocations. It also includes a streaming data parser capable of processing partial input chunks from networks or files and signaling when additional input is required. The project covers a b
Nom is a general-purpose parser combinator framework used to build custom parsers, rather than a specialized library for YAML parsing and serialization.
This project is a framework for the efficient serialization and deserialization of data structures. It provides a unified, macro-based interface that automates the conversion of complex internal objects into standardized formats and reconstructs them from raw input streams or buffers. By leveraging compile-time code generation, the library minimizes manual implementation overhead while ensuring consistent logic across diverse data types. The framework distinguishes itself through a format-agnostic data model and a visitor-based parsing architecture that decouples data structures from specific
This is a general-purpose serialization framework that provides the foundation for data handling in Rust, but it is not a YAML-specific library and does not include the YAML parsing or manipulation logic you requested.
FlatBuffers is a cross-platform serialization library designed for performance-critical applications that require efficient, zero-copy data access. By organizing data in a structured binary format, it allows applications to read and write complex data structures directly from memory-mapped buffers without the need for intermediate parsing or temporary object allocation. The project distinguishes itself through a schema-driven approach that balances high-performance access with long-term data evolution. It utilizes a unique memory layout featuring relative offsets and inline fixed-size structu
This is a high-performance binary serialization format and library, not a YAML parser or manipulator, and therefore does not support the YAML data format or its specific requirements.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| dtolnay/serde-yaml | 1K | Rust | Apache-2.0 | |
| rkyv/rkyv | 4.3K | Rust | MIT | |
| geal/nom |
| 10.4K |
| Rust |
| MIT |
| serde-rs/serde | 10.5K | Rust | apache-2.0 |
| google/flatbuffers | 25.6K | C++ | apache-2.0 |