Skip to content

Releases: serde-rs/serde

v1.0.171

10 Jul 01:06
v1.0.171
03da66c
Compare
Choose a tag to compare
  • Support derive(Deserialize) on unit structs that have const generics (#2500, thanks @Baptistemontan)

v1.0.170

09 Jul 18:20
v1.0.170
6502838
Compare
Choose a tag to compare
  • Produce error message on suffixed string literals inside serde attributes (#2242)
  • Support single identifier as unbraced default value for const generic parameter (#2449)

v1.0.169

09 Jul 04:12
v1.0.169
3fb5e71
Compare
Choose a tag to compare
  • Add Deserializer::deserialize_identifier support for adjacently tagged enums (#2475, thanks @Baptistemontan)
  • Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions (#2414)

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