A high-performance Rust library for parsing and serialising frontmatter in YAML, TOML, and JSON formats. Engineered for safety, efficiency, and ease of use.
• Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
frontmatter-gen
is a robust Rust library that provides comprehensive handling of frontmatter in content files. It delivers a type-safe, efficient solution for extracting, parsing, and serialising frontmatter in multiple formats. Whether you're building a static site generator, content management system, or any application requiring structured metadata, frontmatter-gen
offers the tools you need with performance and safety at its core.
- Zero-copy parsing: Optimised for memory efficiency
- Multi-format support: Parse and serialise YAML, TOML, and JSON
- Type-safe operations: Comprehensive error handling with
Result
types - Secure processing: Input validation and size limits
- Async support: Full asynchronous operations via the
ssg
feature flag - Command-line interface: Direct frontmatter manipulation tools
- Memory safety: Guaranteed memory safety through Rust's ownership system
- Comprehensive testing: Extensive test coverage and validation
- Rich documentation: Detailed guides and examples