Skip to content

ldepandis/libstyx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libstyx

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).

Usage

Add the crate to your project (workspace path example):

[dependencies]
libstyx = { path = "./libstyx" }

Key modules:

  • torrent_parser: parse .torrent files (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.

Testing

Run the test suite:

cargo test -p libstyx

BitTorrent Specification

About

A Rust implementation of the BitTorrent V2 protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages