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 Potv1.0
deserializers can
deserialize.Compatibility::V4
is a new serialization format that serializes enum
variants without associated data in a way that allowsValue
deserialization
to be done unambiguously. See #11 for an example of this issue. This bug
only affecteddeserialize_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