Update docs, cleanup for 4.0.0 release
This commit is contained in:
parent
3160f06f65
commit
006d83d6a7
29 changed files with 206 additions and 116 deletions
|
|
@ -1,17 +1,52 @@
|
|||
//!
|
||||
//! This crate provides everything necessary to download [torrents](https://en.wikipedia.org/wiki/BitTorrent).
|
||||
//!
|
||||
//! # Quick usage example
|
||||
//!
|
||||
//! ```no_run
|
||||
//! use librqbit::*;
|
||||
//!
|
||||
//! tokio_test::block_on(async {
|
||||
//! let session = Session::new("/tmp/where-to-download".into()).await.unwrap();
|
||||
//! let managed_torrent_handle = session.add_torrent(
|
||||
//! AddTorrent::from_url("magnet:?xt=urn:btih:cab507494d02ebb1178b38f2e9d7be299c86b862"),
|
||||
//! None // options
|
||||
//! ).await.unwrap().into_handle().unwrap();
|
||||
//! managed_torrent_handle.wait_until_completed().await.unwrap();
|
||||
//! })
|
||||
//! ```
|
||||
//!
|
||||
//! # Overview
|
||||
//! The main type to start off with is [`Session`].
|
||||
//!
|
||||
//! It also proved useful to use the [`Api`] when building the rqbit desktop app, as it provides
|
||||
//! a facade that works with simple serializable types.
|
||||
|
||||
pub mod api;
|
||||
pub mod api_error;
|
||||
pub mod chunk_tracker;
|
||||
pub mod dht_utils;
|
||||
pub mod file_ops;
|
||||
mod api_error;
|
||||
mod chunk_tracker;
|
||||
mod dht_utils;
|
||||
mod file_ops;
|
||||
pub mod http_api;
|
||||
pub mod http_api_client;
|
||||
pub mod peer_connection;
|
||||
pub mod peer_info_reader;
|
||||
pub mod session;
|
||||
pub mod spawn_utils;
|
||||
pub mod torrent_state;
|
||||
pub mod tracker_comms;
|
||||
pub mod type_aliases;
|
||||
mod peer_connection;
|
||||
mod peer_info_reader;
|
||||
mod session;
|
||||
mod spawn_utils;
|
||||
mod torrent_state;
|
||||
mod tracker_comms;
|
||||
mod type_aliases;
|
||||
|
||||
pub use api::Api;
|
||||
pub use api_error::ApiError;
|
||||
pub use dht;
|
||||
pub use peer_connection::PeerConnectionOptions;
|
||||
pub use session::{
|
||||
AddTorrent, AddTorrentOptions, AddTorrentResponse, ListOnlyResponse, Session, SessionOptions,
|
||||
SUPPORTED_SCHEMES,
|
||||
};
|
||||
pub use spawn_utils::spawn as librqbit_spawn;
|
||||
pub use torrent_state::{ManagedTorrent, ManagedTorrentState};
|
||||
|
||||
pub use buffers::*;
|
||||
pub use clone_to_owned::CloneToOwned;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue