21 stable releases (6 major)
| 8.1.1 | Jun 12, 2025 |
|---|---|
| 8.0.0 | Jan 6, 2025 |
| 7.0.1 | Aug 28, 2024 |
| 6.0.0 | Aug 6, 2024 |
| 2.2.2 | Nov 16, 2023 |
#2 in #rqbit
3,357 downloads per month
Used in 7 crates
(6 directly)
1MB
24K
SLoC
This crate provides everything necessary to download torrents.
Quick usage example
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.
librqbit
A fully featured, easy to use torrent downloading library used as a backbone of rqbit.
Basic example
See examples on GitHub.
Documentation
Dependencies
~25–77MB
~1M SLoC