bencoderus 0.1.0

A library for Bencode encoding and decoding.
Documentation

Bencoderus

Rust library for encoding and decoding the Bencode coding.

Usage

Decode:

// decode transforms Bencoded bytes to objects.
pub fn decode(src: Vec<u8>) -> Bencoding {

Encode:

// encode transforms objects to Bencoded bytes.
pub fn encode(benc: Bencoding) -> Vec<u8> {

License

BSD 3-Clause: LICENSE.txt