cargo serde_derive 0.8.7

latest releases: 1.0.144, 1.0.143, 1.0.142...
7 years ago
  • Add a forward_to_deserialize! macro to simplify JSON-like Deserializer implementations that want to ignore type hints given by Deserialize (#525)

    impl Deserializer for MyDeserializer {
        fn deserialize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error>
            where V: Visitor
        {
            /* ... */
        }
    
        forward_to_deserialize! {
            bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 char str string
            unit option seq seq_fixed_size bytes map unit_struct newtype_struct
            tuple_struct struct struct_field tuple enum ignored_any
        }
    }
  • Add constructors for the Bytes and ByteBuf helpers (#520)

  • Allow MapDeserializer to be deserialized as a sequence of pairs instead of a map (#527)

  • Fix warnings in generated code for a non-unit struct with no fields (#536)

  • Minor cleanup of generated serialization code (#538)

Don't miss a new serde_derive release

NewReleases is sending notifications on new releases.