Skip to content

erickt/rust-tnetstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Compatibility

Use tag v0.1 with Rust 0.2.

About

tnetstring serialization library for rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages