Open e-ivkov opened 1 year ago
https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L58
It seems it doesn't actually write enum variants by index, it uses idents as strings to prefix enum variant.
Impl: https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L87-L97
https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L58
It seems it doesn't actually write enum variants by index, it uses idents as strings to prefix enum variant.
Impl: https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L87-L97