#bittorrent #p2p #torrent #peer-id

bin+lib rdest

rdest is simple BitTorrent client, currently supporting BEP3 specification

1 unstable release

0.1.0 May 2, 2021

#9 in #peer-id

MIT/Apache

3.5MB
4K SLoC

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


lib.rs:

Rust is simple BitTorrent client, currently supporting BEP3 specification.

Example

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

let path = Path::new("ubuntu-20.04.2.0-desktop-amd64.iso.torrent");
let torrent_file = Metainfo::from_file(path).unwrap();
let peer_id = b"AAAAABBBBBCCCCCDDDDD";

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

Dependencies

~10–15MB
~259K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy