Skip to content

v3.0.1

Latest
Compare
Choose a tag to compare
@ecton ecton released this 18 Aug 20:32
7f533f2

Added

  • Compatibility is a new enum that controls compatibility of serialization and
    deserialization. Compatibility::Full is the default compatibility level in
    v3.x, and it serializes data in a way that even Pot v1.0 deserializers can
    deserialize.

    Compatibility::V4 is a new serialization format that serializes enum
    variants without associated data in a way that allows Value deserialization
    to be done unambiguously. See #11 for an example of this issue. This bug
    only affected deserialize_any-type deserialization. Typical deserialization
    works correctly.

    Compatibility can be configured using these new APIs:

    • Config::compatibility
    • Serializer::new_with_compatibility
    • SymbolMap::with_compatibility
    • SymbolMap::set_compatibility