Skip to content

lambdaclass/libtorrent-rs

Repository files navigation

libtorrent-rs

A Rust implementation of the BitTorrent V2 protocol. For now only V1 is implemented but we're working on V2.

Dependencies

  • Rust
  • Cargo

Running

To run the program there needs to be a .cfg file in the configs directory of the project. We provide two with default values as an example. Then run the program with cargo followed by the directory containing the .torrent files, and the directory and name of the .cfg file as shown below:

$ cargo run --bin dtorrent -- --file ./torrents/file_name --config ./configs/config_file

On startup the client gets all the .torrent files on the specified directory and immediately starts the download & upload.

Testing

Run the test suite:

make test

BitTorrent Specification

About

A Rust implementation of the BitTorrent V2 protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published