# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "librqbit" version = "7.0.1" authors = ["Igor Katson "] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "The main library used by rqbit torrent client. The binary is just a small wrapper on top of it." documentation = "https://docs.rs/librqbit" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/ikatson/rqbit" [lib] name = "librqbit" path = "src/lib.rs" [[example]] name = "custom_storage" path = "examples/custom_storage.rs" [[example]] name = "ubuntu" path = "examples/ubuntu.rs" [dependencies.anyhow] version = "1" [dependencies.async-backtrace] version = "0.2" optional = true [dependencies.async-stream] version = "0.3.5" [dependencies.async-trait] version = "0.1.81" [dependencies.axum] version = "0.7.4" optional = true [dependencies.backoff] version = "0.4.0" [dependencies.base64] version = "0.21.5" [dependencies.bencode] version = "3" default-features = false package = "librqbit-bencode" [dependencies.bincode] version = "1" [dependencies.bitvec] version = "1" [dependencies.buffers] version = "4.1" package = "librqbit-buffers" [dependencies.byteorder] version = "1" [dependencies.bytes] version = "1.5.0" [dependencies.clone_to_owned] version = "3" package = "librqbit-clone-to-owned" [dependencies.dashmap] version = "5.5.3" [dependencies.dht] version = "5.1.0" package = "librqbit-dht" [dependencies.futures] version = "0.3" [dependencies.hex] version = "0.4" [dependencies.http] version = "1" [dependencies.itertools] version = "0.12" [dependencies.librqbit-core] version = "4" default-features = false [dependencies.librqbit-upnp] version = "0.1.1" [dependencies.lru] version = "0.12.3" optional = true [dependencies.memmap2] version = "0.9.4" [dependencies.mime_guess] version = "2.0.5" default-features = false [dependencies.parking_lot] version = "0.12" [dependencies.peer_binary_protocol] version = "4.1" default-features = false package = "librqbit-peer-protocol" [dependencies.rand] version = "0.8" [dependencies.regex] version = "1" [dependencies.reqwest] version = "0.12" features = [ "json", "socks", ] default-features = false [dependencies.rlimit] version = "0.10.1" [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_urlencoded] version = "0.7" [dependencies.serde_with] version = "3.4.0" [dependencies.sha1w] version = "4" default-features = false package = "librqbit-sha1-wrapper" [dependencies.size_format] version = "1" [dependencies.sqlx] version = "=0.8.0" features = [ "runtime-tokio", "postgres", ] optional = true [dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", "fs", "io-util", ] [dependencies.tokio-socks] version = "0.5.2" [dependencies.tokio-stream] version = "0.1" [dependencies.tokio-util] version = "0.7.10" features = ["io"] [dependencies.tower-http] version = "0.5" features = [ "cors", "trace", ] optional = true [dependencies.tracing] version = "0.1.40" [dependencies.tracing-subscriber] version = "0.3" features = [ "json", "fmt", "env-filter", ] optional = true default-features = false [dependencies.tracker_comms] version = "2" default-features = false package = "librqbit-tracker-comms" [dependencies.upnp-serve] version = "0.1.0" optional = true default-features = false package = "librqbit-upnp-serve" [dependencies.url] version = "2" [dependencies.urlencoding] version = "2" [dependencies.uuid] version = "1.2" features = ["v4"] [dev-dependencies.futures] version = "0.3" [dev-dependencies.rand] version = "0.8" features = ["small_rng"] [dev-dependencies.tempfile] version = "3" [dev-dependencies.tokio-test] version = "0.4" [dev-dependencies.tracing-subscriber] version = "0.3" [build-dependencies.anyhow] version = "1" [features] async-bt = ["async-backtrace"] default = ["default-tls"] default-tls = [ "reqwest/default-tls", "sha1w/sha1-crypto-hash", "bencode/sha1-crypto-hash", "librqbit-core/sha1-crypto-hash", ] http-api = [ "axum", "tower-http", ] postgres = ["sqlx"] rust-tls = [ "reqwest/rustls-tls", "sha1w/sha1-ring", "sha1w/sha1-ring", "bencode/sha1-ring", "librqbit-core/sha1-ring", ] storage_examples = [] storage_middleware = ["lru"] timed_existence = [] tracing-subscriber-utils = ["tracing-subscriber"] upnp-serve-adapter = ["upnp-serve"] webui = []