rdest

Crates.iordest
lib.rsrdest
version0.1.0
sourcesrc
created_at2021-05-02 13:28:53.483718
updated_at2021-05-02 13:28:53.483718
descriptionrdest is simple BitTorrent client, currently supporting BEP3 specification.
homepage
repositoryhttps://github.com/MateuszJanda/rdest
max_upload_size
id392197
size3,695,850
Mateusz Janda (MateuszJanda)

documentation

README

rdest

rdest is simple BitTorrent client, currently supporting BEP3 specification.

Examples

Running rdest from command line.

rdest get ubuntu-20.04.2.0-desktop-amd64.iso.torrent

Running rdest code.

use rdest::{Metainfo, Session};
use rdest::peer_id;
use std::path::Path;

#[tokio::main]
async fn main() {
    let path = Path::new("ubuntu-20.04.2.0-desktop-amd64.iso.torrent");
    let torrent_file = Metainfo::from_file(path).unwrap();

    let mut session = Session::new(torrent_file, peer_id::generate());
    session.run().await;
}

References

Commit count: 672

cargo fmt