lava_torrent
lava_torrent
is a library for parsing/encoding/creating bencode and .torrent files.
NOTE: lava_torrent
is now in maintenance mode.
Bugs will still be fixed, but no new features will be released.
If you need something, feel free to fork.
Quick Start
Read a torrent (v1) and print it and its info hash.
use Torrent;
let torrent = read_from_file.unwrap;
println!;
println!;
Create a torrent (v1) from files in a directory and save the .torrent file.
use TorrentBuilder;
let torrent = new.build.unwrap;
torrent.write_into_file.unwrap;
Bencode (de)serialization.
use BencodeElem;
let bytes = "d4:spam4:eggse".as_bytes;
let dict = Dictionary;
assert_eq!;
assert_eq!;
assert!;
assert_eq!;
More Info
Please check the documentation.
License: MIT OR Apache-2.0