mneumann / rust-msgpack

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

Fix struct encoding #49

Closed neonquill closed 9 years ago

neonquill commented 9 years ago

The default encoding from a struct was creating a MessagePack map, but without including the field names. Added a test based on the default example from msgpack.org, and fixed the code to pass the test.