Registry / serialization / serde-hjson

serde-hjson

JSON →
library1.1.0rscratesunverified

Provides serialization and deserialization support for the Hjson configuration file format via Serde.

# Cargo.toml [dependencies] serde-hjson = "1.1.0"
INSTALL
IMPORT
SIG · SERDE-HJSON
S
serde-hjson
serializationrustv1.1.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.

from_str
use serde_hjson::from_str;

Parses an Hjson string into a Rust struct.

use serde_hjson::from_str; use serde::Deserialize; #[derive(Deserialize, Debug)] struct Config { name: String, version: u32, } fn main() { let data = r#"{ name: "example" version: 1 }"#; let config: Config = from_str(data).unwrap(); println!("{:?}", config); }
Debug
Known issues
gotchaHjson format is not widely supported; may cause interoperability issues.
fix
Consider using JSON or TOML for broader compatibility.
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
serde-hjson — cargo add serde-hjson · libregistry