#compatibility #data #enums #serde #older #compatible #untagged

compatible-with

Backward compatibility with older data using serde's untagged enums

2 releases

0.1.1 Jul 19, 2023
0.1.0 Jul 19, 2023

#2538 in Encoding

MIT license

9KB
219 lines

Compatible

Compatibility Layer for older data using serde
You just need to provide a Current: From<Old> implementation
And the rest is handled automatically
Keep in mind that this uses untagged enums so it comes with performance cost

Dependencies

~0.3–1MB
~21K SLoC