tnetstring serialization library for rust.
Rust
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 46 commits behind erickt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
tnetstring.rc
tnetstring.rs

README.md

TNetStrings: Tagged Netstrings

This module implements bindings for the tnetstring serialization format.

API

let t = tnetstring::str("hello world");
let s = tnetstring::to_str(t) // returns "11:hello world,"

let (t, extra) = tnetstring::from_str(s);
alt option::get(t) {
  tnetstring::str(s) { ... }
  ...
}

See the tests module in tnetstring.rs for more examples.