This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Releases: dtolnay/serde-yaml
Releases · dtolnay/serde-yaml
0.8.21
0.8.20
0.8.19
- Add an
Entry
API for serde_yaml::Mapping (https://docs.rs/serde_yaml/0.8.19/serde_yaml/struct.Mapping.html#method.entry)
0.8.18
0.8.17
0.8.16
-
Add a Serializer and Deserializer type (#185, #186)
let mut buffer = Vec::new(); let mut ser = serde_yaml::Serializer::new(&mut buffer); let mut object = BTreeMap::new(); object.insert("k", 107); object.serialize(&mut ser)?; let de = serde_yaml::Deserializer::from_slice(&buffer); let value = Value::deserialize(de)?; println!("{:?}", value);
-
Support multi-doc serialization (#187)
let mut buffer = Vec::new(); let mut ser = serde_yaml::Serializer::new(&mut buffer); let mut object = BTreeMap::new(); object.insert("k", 107); object.serialize(&mut ser)?; object.insert("j", 106); object.serialize(&mut ser)?; assert_eq!(buffer, b"---\nk: 107\n...\n---\nj: 106\nk: 107\n");
-
Support multi-doc deserialization (#189)
let input = "---\nk: 107\n...\n---\nj: 106\n"; for document in serde_yaml::Deserializer::from_str(input) { let value = Value::deserialize(document)?; println!("{:?}", value); }
0.8.15
0.8.14
0.8.13
0.8.12
- Add
serde_yaml::mapping
module containingMapping
's various iterator types:Iter
,IterMut
,IntoIter
- Fix deserialization of certain strings incorrectly as NaN or infinity; only
.nan
and.inf
and-.inf
are YAML's permitted representations for NaN and infinity