Skip to content

Releases: serde-rs/serde

v0.7.5

05 Jun 01:51
v0.7.5
Compare
Choose a tag to compare
  • 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 the Deserialize 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 called D (#315)

v0.7.4

05 Jun 01:54
v0.7.4
Compare
Choose a tag to compare
  • Adds skip_deserializing attribute (#265)
  • Adds Deserialize impl for Box<[T]> (#290)
  • Fields with skip_serializing are no longer required to implement the Serialize trait (#260, #285)
  • A bound of std::default::Default is inferred for fields that use the default 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

05 Jun 01:55
v0.7.2
Compare
Choose a tag to compare
  • Fixes a codegen bug related to deserialize_with in a module containing a type alias for Result (#279)
  • Fixes an unused_variables warning in codegen for an empty enum (#273)

v0.7.1

05 Jun 01:55
v0.7.1
Compare
Choose a tag to compare

(this release is a Syntex bump only)

v0.7.0

05 Jun 01:55
v0.7.0
Compare
Choose a tag to compare

This release contains significant breaking changes compared to v0.6.x.

Deserializer trait

  • Renames Deserializer::visit_* to Deserializer::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)

Impls

  • Adds impls for PhantomData (#248)
  • Adds impls for std::net::Ip{,v4,v6}Addr (#181)
  • Removes dependency on num crate added in v0.6.6 (#243)
  • Fixes panic during serialization of Path (#57)

v0.6.15

05 Jun 01:58
v0.6.15
Compare
Choose a tag to compare

(this release is a Syntex bump only)

v0.6.14

05 Jun 01:58
v0.6.14
Compare
Choose a tag to compare

(this release is a Syntex bump only)

v0.6.13

05 Jun 01:58
v0.6.13
Compare
Choose a tag to compare

(this release is a Syntex bump only)

v0.6.12

14 May 08:23
v0.6.12
Compare
Choose a tag to compare
  • Method visit_struct_field has been added to the Deserializer trait to hint that a struct key is expected (#223 and 064241f)

v0.6.11

14 May 08:25
v0.6.11
Compare
Choose a tag to compare
  • Allow options to be deserialized from units (#217)