Cargo Features

[dependencies]
librqbit = { version = "7.0.1", default-features = false, features = ["http-api", "upnp-serve-adapter", "timed_existence", "default-tls", "rust-tls", "storage_middleware", "storage_examples", "tracing-subscriber-utils", "postgres", "async-bt"] }
default = default-tls

The default-tls feature is set by default whenever librqbit is added without default-features = false somewhere in the dependency tree.

http-api = axum, tower-http

Affects librqbit::http_api, librqbit::http_api_client, librqbit::upnp_server_adapter

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 = sqlx

Affects session_persistence::postgres

async-bt = async-backtrace

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 =0.8.0

TODO: 0.8.1 doesn't compile, upgrade once released.

upnp-serve upnp-serve-adapter?

Enables librqbit-upnp-serve

axum http-api?
tower-http http-api?

Enables tower-http ^0.5

tracing-subscriber tracing-subscriber-utils?
lru storage_middleware?
async-backtrace async-bt?