Cargo Features

[dependencies]
librqbit = { version = "8.1.1", default-features = false, features = ["tokio-console", "http-api", "http-api-client", "upnp-serve-adapter", "timed_existence", "default-tls", "rust-tls", "storage_middleware", "storage_examples", "tracing-subscriber-utils", "postgres", "async-bt", "watch", "disable-upload"] }
default = default-tls, http-api-client

These default features are set whenever librqbit is added without default-features = false somewhere in the dependency tree.

tokio-console = console-subscriber

Enables tracing of tokio

http-api = axum, tower-http

Affects librqbit::http_api, librqbit::http_api_types, librqbit::upnp_server_adapter

http-api-client default

Affects librqbit::http_api_client, librqbit::http_api_types

upnp-serve-adapter = upnp-serve

Affects librqbit::upnp_server_adapter

webui timed_existence
default-tls default

Enables sha1-crypto-hash of librqbit-sha1-wrapper, sha1-crypto-hash of librqbit-bencode and librqbit-core and default-tls of reqwest

reqwest:

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

rust-tls

Enables rustls-tls of reqwest, sha1-ring of librqbit-sha1-wrapper, sha1-ring of librqbit-bencode and librqbit-core

storage_middleware = lru

Affects storage::middleware

storage_examples

Affects storage::examples

tracing-subscriber-utils = tracing-subscriber

Affects librqbit::tracing_subscriber_config_utils

postgres = home, sqlx

Affects session_persistence::postgres

async-bt = async-backtrace
watch = notify

Affects librqbit::watch

disable-upload

Affects session::SessionOptions.disable_upload

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

sqlx postgres?

Enables sqlx

sqlx and home are pinned so that we can compile on older Rusts

home postgres?
upnp-serve upnp-serve-adapter?

Enables librqbit-upnp-serve

console-subscriber tokio-console?
axum http-api?
tower-http http-api?
tracing-subscriber tracing-subscriber-utils?
lru storage_middleware?
async-backtrace async-bt?
notify watch?