A Rust library that implements the BitTorrent protocol, covering both the v1 and the v2 specs, including Merkle tree piece verification.
The crate exposes protocol building blocks (parsing, hashing, tracker/http, peer messaging, storage helpers).
Add the crate to your project (workspace path example):
[dependencies]
libstyx = { path = "./libstyx" }Key modules:
torrent_parser: parse.torrentfiles (v1 and v2) and compute info hashes.peer: handshake/messages and session helpers.tracker: query trackers (HTTP/HTTPS).storage_manager: read/write pieces to disk.bt_server: primitives for serving pieces.
Run the test suite:
cargo test -p libstyx