Cargo Features

tor-proto has no features set by default.

[dependencies]
tor-proto = { version = "0.24.0", features = ["full", "experimental", "ntor_v3", "hs-service", "hs-common", "experimental-api", "send-control-msg", "stream-ctrl", "testing", "tokio"] }
full = hs-client, hs-service, send-control-msg, tokio

Enables full of oneshot-fused-workaround, safelog, tor-async-utils, tor-basic-utils, tor-bytes, tor-cell, tor-cert, tor-checkable, tor-config, tor-error, optional tor-hscrypto, tor-linkspec, tor-llcrypto, tor-log-ratelim, tor-memquota, tor-rtcompat, tor-rtmock, and tor-units

experimental = experimental-api, ntor_v3, stream-ctrl, testing
ntor_v3 experimental?
hs-client hs-service full? = hs-common
hs-common hs-client? hs-service? = tor-hscrypto

Affects handshake::RelayProtocol, circuit::handshake, handshake::hs_ntor

experimental-api experimental?
send-control-msg full? = visibility

start_conversation etc.; TODO HS should be renamed

Affects reactor::ConversationInHandler, circuit::Conversation

stream-ctrl experimental?

Affects data::DataStreamCtrl

testing experimental?

Enable testing-only APIs. APIs under this feature are not covered by semver.

tokio full? = tokio-crate, tokio-util

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.

tokio-crate tokio?

Enables tokio

tokio-util tokio?
tor-hscrypto hs-common?
visibility send-control-msg?