diff options
Diffstat (limited to 'crates/arti/Cargo.toml')
| -rw-r--r-- | crates/arti/Cargo.toml | 62 |
1 files changed, 44 insertions, 18 deletions
diff --git a/crates/arti/Cargo.toml b/crates/arti/Cargo.toml index f5e6c0eb3..72319789c 100644 --- a/crates/arti/Cargo.toml +++ b/crates/arti/Cargo.toml @@ -10,6 +10,8 @@ description = "A rust implementation of the Tor privacy tools." keywords = ["tor", "arti", "privacy", "anonymity"] categories = ["command-line-utilities", "cryptography"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" +[package.metadata.docs.rs] +all-features = true # # We need a runtime # @@ test-all-crates conditional-option minimal --features=default-runtime @@ -64,9 +66,18 @@ full = [ "tor-key-forge/full", "tor-keymgr/full", "tor-hscrypto?/full", + "tor-cell?/full", + "tor-hsclient?/full", + "tor-proto?/full", + "futures-copy/full", ] -async-std = ["arti-client/async-std", "tor-rtcompat/async-std", "async-ctrlc", "async-signal"] +async-std = [ + "arti-client/async-std", + "tor-rtcompat/async-std", + "async-ctrlc", + "async-signal", +] bridge-client = ["arti-client/bridge-client"] default-runtime = ["tokio", "native-tls"] dns-proxy = ["hickory-proto"] @@ -101,7 +112,12 @@ rpc = ["arti-rpcserver", "tor-rpcbase", "tor-rpc-connect", "derive-deftly"] # This is not nonadditive from a software POV, but we mark it as such because it # includes code licensed under the old OpenSSL license (which was 4-clause BSD), # which in turn introduces a GPL-incompatibility. -rustls = ["arti-client/rustls", "tor-rtcompat/rustls", "rustls-crate", "__is_nonadditive"] +rustls = [ + "arti-client/rustls", + "tor-rtcompat/rustls", + "rustls-crate", + "__is_nonadditive", +] # depends directly on arti-client/static so native-tls doesn't get automatically included static = ["arti-client/static", "__is_nonadditive"] @@ -144,12 +160,24 @@ experimental = [ "opentelemetry", "tokio-console", ] -metrics = ["dep:metrics-exporter-prometheus", "tor-hsservice?/metrics", "tor-hsrproxy?/metrics", "__is_experimental"] -http-connect = ["__is_experimental", "base64ct", "http", "hyper", "tor-error/http", "tor-cell", "tor-proto"] +metrics = [ + "dep:metrics-exporter-prometheus", + "tor-hsservice?/metrics", + "tor-hsrproxy?/metrics", + "__is_experimental", +] +http-connect = [ + "__is_experimental", + "base64ct", + "http", + "hyper", + "tor-error/http", + "tor-cell", + "tor-proto", +] hsc = ["onion-service-client", "experimental-api", "keymgr", "__is_experimental"] tokio-console = ["dep:console-subscriber", "__is_experimental"] __is_experimental = [] - # These features exist for backwards compatibility, and shouldn't be used directly. # Next time we do a version bump, it would be good to get rid of them. @@ -173,6 +201,7 @@ derive-deftly = { version = "~1.5.0", features = ["full", "beta"], optional = tr derive_builder = { version = "0.11", package = "derive_builder_fork_arti" } fs-mistrust = { path = "../fs-mistrust", version = "0.13.0" } futures = "0.3.14" +futures-copy = { version = "0.2.0", path = "../futures-copy" } hickory-proto = { version = "0.25.2", optional = true } http = { version = "1.3.1", optional = true } humantime = "2" @@ -184,6 +213,11 @@ metrics-exporter-prometheus = { version = "0.17.0", optional = true, default-fea "http-listener", ] } notify = { version = "8", default-features = false, features = ["macos_kqueue"] } +opentelemetry = { version = "0.31.0", optional = true } +opentelemetry-appender-tracing = { version = "0.31.1", optional = true } +opentelemetry-otlp = { version = "0.31.0", optional = true } +opentelemetry-proto = { version = "0.31.0", optional = true } +opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"], optional = true } # TODO: what's up with this feature paste = "1" pin-project = "1" postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } @@ -196,6 +230,7 @@ rustls-crate = { package = "rustls", version = "0.23.5", optional = true, defaul safelog = { path = "../safelog", version = "0.7.0" } secmem-proc = { version = "0.3.4", optional = true } serde = { version = "1.0.103", features = ["derive"] } +serde_json = "1.0.50" thiserror = "2" time = "0.3.18" tokio-crate = { package = "tokio", version = "1.7", optional = true, features = ["signal"] } @@ -221,17 +256,13 @@ tor-socksproto = { path = "../tor-socksproto", version = "0.36.0" } tracing = "0.1.36" tracing-appender = "0.2.0" tracing-journald = { version = "0.3.0", optional = true } + +tracing-opentelemetry = { version = "0.32.0", optional = true } tracing-subscriber = { version = "0.3.20", features = ["env-filter"] } visibility = { version = "0.1.0", optional = true } -tracing-opentelemetry = { version = "0.32.0", optional = true } -opentelemetry = { version = "0.31.0", optional = true } -opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"], optional = true } # TODO: what's up with this feature -opentelemetry-otlp = { version = "0.31.0", optional = true } -opentelemetry-appender-tracing = { version = "0.31.1", optional = true } -opentelemetry-proto = { version = "0.31.0", optional = true } -serde_json = "1.0.50" -futures-copy = { version = "0.2.0", path = "../futures-copy" } +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3.8", features = ["winerror"] } [dev-dependencies] amplify = { version = "4", default-features = false, features = ["derive"] } @@ -252,8 +283,3 @@ tor-memquota = { version = "0.36.0", path = "../tor-memquota", default-features tor-rtmock = { path = "../tor-rtmock", version = "0.36.0" } trycmd = "0.15.4" walkdir = "2" -[package.metadata.docs.rs] -all-features = true - -[target.'cfg(windows)'.dependencies] -winapi = { version = "0.3.8", features = ["winerror"] } |
