Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/erickt/rust-tnetstring
- Owner: erickt
- License: mit
- Created: 2011-12-21T02:03:12.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T05:48:16.000Z (almost 10 years ago)
- Last Synced: 2024-10-19T21:04:55.382Z (15 days ago)
- Language: Rust
- Homepage:
- Size: 264 KB
- Stars: 15
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-rust-cn - erickt/rust-tnetstring - ci.org/erickt/rust-tnetstring.svg?branch=master">](https://travis-ci.org/erickt/rust-tnetstring) (Libraries / Encoding)
- awesome-rust - erickt/rust-tnetstring - ci.org/erickt/rust-tnetstring.svg?branch=master">](https://travis-ci.org/erickt/rust-tnetstring) (Libraries / Encoding)
- awesome-rust-zh - erickt/rust-tnetstring - [<img src="https://api.travis-ci.org/erickt/rust-tnetstring.svg?branch=master">](https://travis-ci.org/erickt/rust-tnetstring) (库 / 编码(Encoding))
- awesome-rust - erickt/rust-tnetstring - ci.org/erickt/rust-tnetstring.svg?branch=master">](https://travis-ci.org/erickt/rust-tnetstring) (库 Libraries / 加密 Encoding)
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.