v0.8.7
-
Add a
forward_to_deserialize!
macro to simplify JSON-likeDeserializer
implementations that want to ignore type hints given byDeserialize
(#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
andByteBuf
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)