#bencode #bittorrent #encoder #codec #decoder #torrent

bencoderus

A library for Bencode encoding and decoding

2 releases

Uses old Rust 2015

0.1.1 Mar 7, 2017
0.1.0 Feb 21, 2017

#31 in #bencode

Custom license

28KB
690 lines

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

LICENSE

Dependencies

~4.5MB
~102K SLoC