Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 430 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 430 Bytes

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.