Open Fi3 opened 3 years ago
There are Encodable
and Decodable
features that are equivalent to the serde
crate's Serialize
+ Deserialize
features. Currently, these work on struct
s:
#[derive(Encodable, Decodable)]
struct Struct { }
We want them to also work on enum
's:
#[derive(Encodable, Decodable)]
enum Enum { }
This is a nice to have, but not required.
Is impossible to derive encodable and decodable for enums. Add this feature. https://github.com/stratum-mining/stratum/blob/main/protocols/v2/binary-sv2/no-serde-sv2/derive_codec/src/lib.rs