torrent 0.1.1

High-level async BitTorrent library — session management, HTTP/UDP tracker communication, DHT networking, peer connections, and file storage. Built on torrent-core with tokio.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! DHT networking — async RPC and query helpers.
//!
//! Re-exports sync types from `torrent_core::dht` and provides
//! async UDP RPC and high-level query functions.
//!
//! # Key Types
//!
//! - [`Node`], [`RoutingTable`], [`krpc::KrpcMessage`] — re-exported from `torrent_core`
//! - [`rpc::DhtRpc`] — async UDP send/receive with transaction matching
//! - [`query::find_node`], [`query::get_peers`], [`query::announce_peer`] — high-level query helpers

mod query;
mod rpc;

pub use torrent_core::dht::{Node, RoutingTable, generate_node_id, krpc};

pub use self::query::{announce_peer, find_node, get_peers};
pub use self::rpc::DhtRpc;