Registry / utility / frontmatter

frontmatter

JSON →
library0.4.0rscratesunverified

A Fairly Trivial Wrapper for yaml-rust to Extract Frontmatter from a String Slice

# Cargo.toml [dependencies] frontmatter = "0.4.0"
INSTALL
IMPORT
SIG · FRONTMATTER
F
frontmatter
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
use frontmatter::parse;

Parses frontmatter from a string slice

use frontmatter::parse; fn main() { let content = "---\ntitle: Hello\n---\nBody text"; let (front, body) = parse(content).unwrap(); println!("Frontmatter: {:?}, Body: {}", front, body); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
frontmatter — cargo add frontmatter · libregistry