Crates.io | bencoderus |
lib.rs | bencoderus |
version | 0.1.1 |
source | src |
created_at | 2017-02-21 19:09:13.946023 |
updated_at | 2017-03-07 19:25:29.536874 |
description | A library for Bencode encoding and decoding. |
homepage | https://github.com/russmack/bencoderus |
repository | https://github.com/russmack/bencoderus |
max_upload_size | |
id | 8622 |
size | 28,573 |
Rust library for encoding and decoding the Bencode coding.
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> {
BSD 3-Clause: LICENSE.txt