Cargo Features

[dependencies]
tor-dirclient = { version = "0.24.0", default-features = false, features = ["hs-client", "hs-service", "xz", "zstd", "routerdesc", "full", "experimental"] }
default = xz, zstd

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

hs-client full? = tor-hscrypto

Enable support for hidden service descriptor downloads.

Affects request::HsDescDownloadRequest

hs-service full? = tor-hscrypto

Enable support for uploading hidden service descriptor downloads.

Affects request::HsDescUploadRequest

xz default full?

Enables xz of async-compression

zstd default full?

Enables zstd of async-compression

routerdesc full?

Enable support for router descriptor downloads.

Affects request::RouterDescRequest, request::RoutersOwnDescRequest

full = hs-client, hs-service, routerdesc, xz, zstd

Enables full of tor-circmgr, tor-error, optional tor-hscrypto, tor-linkspec, tor-llcrypto, tor-netdoc, tor-proto, and tor-rtcompat

experimental

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.

tor-hscrypto hs-client? hs-service?