11 releases (4 breaking)

0.5.1 Nov 26, 2019
0.5.0 Nov 26, 2019
0.4.2 Nov 26, 2019
0.3.1 Nov 20, 2019
0.1.0 Sep 6, 2019

#452 in Encoding

Download history 127/week @ 2019-12-08 8/week @ 2019-12-15 11/week @ 2019-12-22 15/week @ 2020-01-05 21/week @ 2020-01-12 5/week @ 2020-01-19 2/week @ 2020-01-26 12/week @ 2020-02-09 84/week @ 2020-02-16 42/week @ 2020-02-23 22/week @ 2020-03-08 22/week @ 2020-03-15 77/week @ 2020-03-22

134 downloads per month
Used in serde-version

MIT/Apache

31KB
609 lines

Serde version   Build Status Latest Version

Serde version

//! Versioning support for serde. //! When software are developped and used at the same time the data formats may change from one version to another and persisting data may be produced by a specific version and loaded by another version. //! Serde version provide a versioning feature for serde for the main use cases. //! See the guide here. //! Note 1: Requires the specialization feature. Note 2: Use the derive feature to generate the DeserializeVersioned implementation //!

Goals of Serde version

//! We aim at solving the case were a type or a set of types in a deserializer's data needs to be upgraded to their latest format. This is the case when a mandatory property was added or removed, or an existing property changed. //!

Non goals

//! This is based on types that can be upgraded individually. Types that needs to be upgraded together is way more complex to handle and usually relies on domain specific deserializer. //! So, these data format should be handle with specific Deserialize traits implementations.

Dependencies

~0.5–0.8MB
~19K SLoC