Registry / serialization / serde-yaml

serde-yaml

JSON →
library0.9.34+deprecatedrscratesunverified

YAML data format for Serde.

# Cargo.toml [dependencies] serde_yaml = "0.9.34+deprecated"
INSTALL
IMPORT
SIG · SERDE-YAML
S
serde-yaml
serializationrustv0.9.34+deprecated
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_yaml::from_str;

Deserializes a YAML string into a struct.

use serde_yaml::from_str; use serde::Deserialize; #[derive(Deserialize, Debug)] struct Config { name: String, version: u32, } fn main() { let yaml = "name: myapp\nversion: 1\n"; let config: Config = from_str(yaml).unwrap(); println!("{:?}", config); }
Debug
Known issues
breakingCrate is deprecated; use `serde_yml` instead.
fix
Replace `serde_yaml` with `serde_yml` in Cargo.toml and imports.
affects: >=0.9.34
Upgrade
Version history
0.9.34+deprecatedlatest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Bingbot
1
Resources
serde-yaml — cargo add serde-yaml · libregistry