benko
A zero dependency bencode parser and encoder written in rust.
Want to use benko for Torrents? check out tijb/torq
Getting Started
Check out the docs. docs.rs/benko
Examples
read from a file
let bytes: = read
.expect;
let bencode: Benc = parse
.expect;
encode to bytes
let bencode: Benc = Int;
let bytes: = bencode.bytes;
Issues?
Feel free to put up a Pull Request, or open an Issue. :)