Registry / utility / gray-matter

gray-matter

JSON →
library0.3.2rscratesunverified

Smart front matter parser supporting YAML, JSON, TOML, and custom parsers.

# Cargo.toml [dependencies] gray_matter = "0.3.2"
INSTALL
IMPORT
SIG · GRAY-MATTER
G
gray-matter
utilityrustv0.3.2
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.

Matter
use gray_matter::Matter;

Parse front matter from a string.

use gray_matter::Matter; let matter = Matter::new(); let result = matter.parse("---\ntitle: Hello\n---\nContent"); assert_eq!(result.data["title"], "Hello");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gray-matter — cargo add gray-matter · libregistry