implementation for Rust language /[Rust]
Latest commit 710b104 Sep 27, 2015 @mneumann Add parse_map_len()
Failed to load latest commit information.
examples Rustup May 26, 2015
src Add parse_map_len() Sep 27, 2015
.gitignore Updated to Rust nightly Oct 3, 2014
.travis.yml Build with nightly Sep 26, 2015
Cargo.toml Switch to the byteorder library. May 27, 2015 Fix example in README Aug 2, 2014

rust-msgpack Build Status

Msgpack implementation for Rust language.


Simply include the rust-msgpack in your Cargo dependencies.


git = ""


extern crate msgpack;

fn main() {
  let arr = vec!["str1".to_string(), "str2".to_string()];
  let str = msgpack::Encoder::to_msgpack(&arr).ok().unwrap();
  println!("Encoded: {}", str);

  let dec: Vec<String> = msgpack::from_msgpack(str).ok().unwrap();
  println!("Decoded: {}", dec);

To enable your own data structures to be automatically serialized from and to msgpack, derive from Encodable and Decodable as shown in the following example:

extern crate serialize;

struct MyStruct {
  a: Vec<u32>,
  s: String


cargo test


This code licensed under the same terms as Rust itself: dual MIT/Apache2 license options.