chore: trim unnecessary Arti features to reduce binary size

- Set default-features = false on arti-client and tor-rtcompat
- Removed bridge-client (UI doesn't expose bridge config yet)
- Narrowed tokio features from "full" to only what the SOCKS proxy
  needs: rt-multi-thread, net, io-util, time, macros

Kept: tokio, rustls, compression, onion-service-client, static-sqlite
(all required for Amethyst's .onion relay support)

https://claude.ai/code/session_01BApgDd5udqBzMqysSRMpZu
This commit is contained in:
Claude
2026-04-01 17:12:35 +00:00
parent 35bf16b63e
commit 53ae87aa9d
2 changed files with 20 additions and 11 deletions
+3 -4
View File
@@ -9,17 +9,16 @@ crate-type = ["cdylib"]
[workspace]
[dependencies]
arti-client = { version = "0.38", features = [
arti-client = { version = "0.38", default-features = false, features = [
"tokio",
"rustls",
"compression",
"bridge-client",
"onion-service-client",
"static-sqlite",
] }
tor-rtcompat = { version = "0.38", features = ["tokio", "rustls"] }
tor-rtcompat = { version = "0.38", default-features = false, features = ["tokio", "rustls"] }
jni = "0.21"
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = ["rt-multi-thread", "net", "io-util", "time", "macros"] }
anyhow = "1"
[profile.release]