webtorrent/
lib.rs

1/*! webtorrent-rs. MIT License. WebTorrent Rust Port */
2
3pub mod client;
4pub mod torrent;
5pub mod peer;
6pub mod conn_pool;
7pub mod server;
8pub mod discovery;
9pub mod piece;
10pub mod file;
11pub mod store;
12pub mod nat;
13pub mod error;
14pub mod protocol;
15pub mod wire;
16pub mod selections;
17pub mod rarity_map;
18pub mod bencode_parser;
19pub mod magnet;
20pub mod tracker;
21pub mod dht;
22pub mod throttling;
23pub mod extensions;
24pub mod torrent_creator;
25
26// Re-export for easier use
27pub use bencode_parser::{parse_bencode, BencodeValue};
28pub use magnet::MagnetUri;
29pub use throttling::ThrottleGroup;
30pub use extensions::{UtMetadata, UtPex, ExtensionProtocol};
31
32pub use client::{WebTorrent, WebTorrentOptions, TorrentId};
33pub use torrent::Torrent;
34pub use error::{WebTorrentError, Result};
35pub use selections::{Selections, Selection};
36pub use rarity_map::RarityMap;
37pub use piece::Piece;
38pub use file::File;
39pub use store::{ChunkStore, MemoryChunkStore};
40pub use protocol::{Handshake, MessageType};
41pub use torrent_creator::TorrentCreator;
42pub use nat::NatTraversal;
43
44pub const VERSION: &str = env!("CARGO_PKG_VERSION");
45