#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

#1569 in Encoding

21 downloads per month

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.4–1MB
~23K SLoC