Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erickt/rust-tnetstring

tnetstring serialization library for rust.
https://github.com/erickt/rust-tnetstring

Last synced: 7 days ago
JSON representation

tnetstring serialization library for rust.

Awesome Lists containing this project

README

        

TNetStrings: Tagged Netstrings

This module implements bindings for the [tnetstring](http://tnetstrings.org)
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.

## Compatibility

Use tag v0.1 with Rust 0.2.