mneumann / rust-msgpack

[DEPRECATED] msgpack.org implementation for Rust language. Please use https://github.com/3Hren/msgpack-rust
122 stars 31 forks source link

Add enum support. #13

Closed itdaniher closed 9 years ago

itdaniher commented 10 years ago

It'd be nice to be able to make use of enums - it's a feature I used with capnp that was quite helpful for weird datastructure shenanigans. Opening an issue to collect thoughts before I give it a stab.

itdaniher commented 10 years ago

Coercion to and from uint would be useful for my purposes, largely just as syntactic sugar. Turns out msgpack doesn't define an enum type.

mneumann commented 10 years ago

There is a new msgpack spec which includes user-defined types. But this will never be interoperable with other languages, so it's better not to use.

mneumann commented 9 years ago

Yeah, it's not interoperable.