summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 04:53:40 +0100
committertv <tv@krebsco.de>2026-10-28 04:53:40 +0100
commit81515a196b527b79a5d2230a1aeca1ff4769d69d (patch)
tree20899dcbb651a95e03f71722c19b0793a13fb71d /Cargo.toml
parent54a8c79840c7b96064ed1677bd39bd6e04dec7ba (diff)
add tor transport
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml18
1 files changed, 17 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4b972be..9040ebb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,10 +8,26 @@ tokio-console = ["dep:console-subscriber"]
# The libp2p transport (`--transports libp2p`).
libp2p = ["dep:libp2p", "dep:libp2p-stream", "dep:futures"]
# The Tor transport (`--transports tor`): onion services, with arti.
-tor = []
+tor = [
+ "dep:arti-client",
+ "dep:tor-hsservice",
+ "dep:tor-cell",
+ "dep:tor-proto",
+ "dep:tor-rtcompat",
+ "dep:safelog",
+ "dep:futures",
+]
[dependencies]
anyhow = "1.0"
+# The tor feature: arti's crates are released together, at the same version.
+arti-client = { version = "0.47", optional = true, features = ["onion-service-client", "onion-service-service", "static-sqlite"] }
+tor-cell = { version = "0.47", optional = true }
+tor-hsservice = { version = "0.47", optional = true }
+tor-proto = { version = "0.47", optional = true }
+tor-rtcompat = { version = "0.47", optional = true }
+# Arti's: shows onion addresses unredacted, when asked.
+safelog = { version = "0.10", optional = true }
argon2 = { version = "0.6", features = ["getrandom"] }
async-stream = "0.3"
async-trait = "0.1"