Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Releases: dtolnay/serde-yaml

0.8.21

10 Sep 19:40
0.8.21
644be16
Compare
Choose a tag to compare
  • Avoid emitting surplus precision when serializing f32 (#214, thanks @cheradenine)

0.8.20

26 Aug 17:48
0.8.20
269de16
Compare
Choose a tag to compare
  • Recognize tags on quotes scalars (#210, thanks @knkski)

0.8.19

22 Aug 05:04
0.8.19
e5c1113
Compare
Choose a tag to compare

0.8.18

18 Aug 03:53
0.8.18
51ee45d
Compare
Choose a tag to compare
  • Fix bytes getting dropped when serializing large object to a writer (#206, thanks @jturner314)

0.8.17

10 Feb 19:58
0.8.17
8862596
Compare
Choose a tag to compare
  • Add IntoDeserializer implementation to Value enum (#192, thanks @luke-biel)

0.8.16

02 Feb 05:29
0.8.16
02e9940
Compare
Choose a tag to compare
  • 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

05 Jan 07:59
0.8.15
c3595c7
Compare
Choose a tag to compare
  • Declare dependency version requirements compatible with minimal-versions lockfile (#183)

0.8.14

31 Oct 02:25
0.8.14
2d60691
Compare
Choose a tag to compare
  • Fix handling of scalars consisting of digits with leading zeros (#180, thanks @stephanbuys)

0.8.13

10 Jun 07:05
0.8.13
c3c5758
Compare
Choose a tag to compare
  • Documentation improvements

0.8.12

10 May 20:49
0.8.12
d6b815a
Compare
Choose a tag to compare
  • Add serde_yaml::mapping module containing Mapping'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