Need help with rust-msgpack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mneumann
128 Stars 32 Forks 196 Commits 14 Opened issues

Description

[DEPRECATED] msgpack.org implementation for Rust language. Please use https://github.com/3Hren/msgpack-rust

Services available

!
?

Need anything else?

Contributors list

# 86,961
pony-la...
React
unix
dragonf...
107 commits
# 15,842
Rust
serde
Nim
no-std
14 commits
# 152,370
Shell
timezon...
Python
python3
11 commits
# 2,913
mutex
intelli...
gRPC
cockroa...
6 commits
# 98,383
Go
bitset
in-memo...
repl
6 commits
# 227,717
Rust
D
automat...
Shell
6 commits
# 73,157
Rust
golang
kafka
kafka-c...
5 commits
# 319,448
HTML
sublime
gfm
Markdow...
5 commits
# 122,684
Shell
gsoc
OCaml
typeset...
3 commits
# 30,811
Clojure
Docker
epl
edn
3 commits
# 108,460
Rust
Swift
specifi...
swift-f...
2 commits
# 392,225
Python
sympy
circuit...
C
2 commits
# 252,299
HTML
Shell
JavaScr...
bayesia...
1 commit

:warning: WARNING: This is no longer maintained nor works with current versions of Rust! Please use https://github.com/3Hren/msgpack-rust instead.

rust-msgpack Build Status

Msgpack implementation for Rust language.

Installation

Simply include the rust-msgpack in your Cargo dependencies.

[dependencies.msgpack]

git = "[email protected]:mneumann/rust-msgpack.git"

Quickstart

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 = 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;

#[deriving(Encodable,Decodable)] struct MyStruct { a: Vec, s: String }

Testing

cargo test

License

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.