Releases: serde-rs/serde
Releases · serde-rs/serde
v0.7.6
- Enables use in no_std environments, controlled by the following feature flags (#316)
alloc
(impliesnightly
)collections
(impliesalloc
andnightly
)std
(default)
- Fixes a number of bugs around (de)serialize_with in newtype structs, tuple structs, newtype variants, and tuple variants (#335)
- Serializes double-references to generic types correctly (#337)
- Fixes some compiler warnings that snuck into 0.7.5 (#322)
v0.7.5
- Fixes a codegen regression from 0.7.4 that generates invalid code for some generic structs (#308)
- Visiting the same struct field or map key twice is now an error (#293)
- Fields with
deserialize_with
are no longer required to implement theDeserialize
trait (#311) - Fixes a codegen bug related to
deserialize_with
in a struct containing more than one field (#308) - Fixes a codegen bug related to
deserialize_with
in a struct with a type parameter calledD
(#315)
v0.7.4
- Adds
skip_deserializing
attribute (#265) - Adds Deserialize impl for
Box<[T]>
(#290) - Fields with
skip_serializing
are no longer required to implement theSerialize
trait (#260, #285) - A bound of
std::default::Default
is inferred for fields that use thedefault
attribute (#285) - Supports codegen for structs that use defaulted generic type params (#295)
- Supports
extern crate serde
not in the top-level module (#298)
v0.7.2
v0.7.1
v0.7.0
This release contains significant breaking changes compared to v0.6.x.
Deserializer trait
- Renames
Deserializer::visit_*
toDeserializer::deserialize_*
(#151) - Adds
deserialize_ignored_any
method to Deserializer trait (#225) - Overhauls the
de::Error
trait (#160, #166, #169, #249, #254) - Adds hooks for fixed-sized arrays (#244)
Attributes
- Adds
deny_unknown_fields
attribute (#44 and #60) - Adds
default="..."
attribute (#90, #216) - Removes support for format-specific renames added in v0.4.0 (#211)
- Supports serialize- and deserialize-specific renames (#233)