Skip to content

v0.8.7

Compare
Choose a tag to compare
@dtolnay dtolnay released this 05 Sep 16:50
· 2848 commits to master since this release
v0.8.7
e85ca84
  • 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)