Skip to content

Releases: serde-rs/serde

v1.0.168

09 Jul 00:54
v1.0.168
09b78b2
Compare
Choose a tag to compare
  • Allow serde::de::IgnoredAny to be the type for a serde(flatten) field (#2436, thanks @Mingun)
  • Allow larger preallocated capacity for smaller elements (#2494)

v1.0.167

06 Jul 23:27
v1.0.167
807bd20
Compare
Choose a tag to compare
  • Add serialize and deserialize impls for RangeFrom and RangeTo (#2471, thanks @tbu-)

v1.0.166

03 Jul 18:34
v1.0.166
48479e4
Compare
Choose a tag to compare
  • Add no-alloc category to crates.io metadata

v1.0.165

03 Jul 11:24
v1.0.165
dcbc3e0
Compare
Choose a tag to compare
  • Fix incorrect count of fields passed to tuple deserialization methods when using serde(skip_deserializing) attributes (#2466, thanks @Mingun)
  • Fix -Zminimal-versions build

v1.0.164

08 Jun 05:08
v1.0.164
107018c
Compare
Choose a tag to compare
  • Allowed enum variants to be individually marked as untagged (#2403, thanks @dewert99)

v1.0.163

10 May 07:52
v1.0.163
fccb949
Compare
Choose a tag to compare
  • Eliminate build script from serde_derive crate to slightly reduce build time (#2442, thanks @taiki-e)

v1.0.162

05 May 01:51
v1.0.162
99f165b
Compare
Choose a tag to compare
  • Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the csv crate (#2377, thanks @mfro)

    #[derive(Deserialize)]
    pub struct Record {
        common: u64,
        #[serde(flatten)]
        kind: Kind,
    }
    
    #[derive(Deserialize)]
    #[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
    enum Kind {
        Foo(u64),
        Bar(bool),
    }
    common,kind,parameter
    1,foo,42
    2,bar,true
    

v1.0.161

04 May 23:49
v1.0.161
3e4a23c
Compare
Choose a tag to compare
  • Improve error messages produced by serde_test on test failure (#2435, thanks @Mingun)

v1.0.160

11 Apr 05:16
v1.0.160
0c6a2bb
Compare
Choose a tag to compare

v1.0.159

28 Mar 05:07
v1.0.159
d6de911
Compare
Choose a tag to compare
  • Accept empty #[serde()] attribute (#2422)