mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
Wins: reduced GeoIP memory usage (moved off heap), CircuitClosed→NotConnected error change (affects our handler error paths), DATA-cells-on-closed-streams fix, and a flow-control sidechannel mitigation bug fix. Nothing here directly addresses the stuck-Tor recovery work in the prior commits, but it's a clean overdue bump while we're in this code. Wrapper changes required by the bump: - arti-client + tor-rtcompat: 0.41 → 0.42 to match the new crate versions shipped with arti-v2.3.0. - arti-v2.3.0's tor-rtcompat no longer installs a rustls CryptoProvider implicitly (changelog: "if the application fails to install a rustls CryptoProvider, tor-rtcompat no longer installs one itself"). Add a direct `rustls = "0.23"` dep with the `ring` feature and `install_default()` it inside INIT_ONCE before runtime creation — otherwise create_bootstrapped panics on the first TLS handshake. Keeping `ring` (same as 2.2.0 effectively used) rather than 2.3.0's new default `aws-lc-rs`, which is heavier on Android and has known build.rs pain on aarch64-linux-android. Heads-up for the next bump: arti-v2.4.0 will explicitly wrap TorClient in Arc rather than implicitly having Arc-like semantics. We already wrap explicitly so the migration is a no-op aside from potential Arc<Arc<...>> cleanup. Rebuilds: libarti_android.so for arm64-v8a + x86_64.
35 lines
976 B
TOML
35 lines
976 B
TOML
[package]
|
|
name = "arti-android"
|
|
version = "2.3.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[workspace]
|
|
|
|
[dependencies]
|
|
arti-client = { version = "0.42", default-features = false, features = [
|
|
"tokio",
|
|
"rustls",
|
|
"compression",
|
|
"onion-service-client",
|
|
"static-sqlite",
|
|
] }
|
|
tor-rtcompat = { version = "0.42", default-features = false, features = ["tokio", "rustls"] }
|
|
# Direct dep on rustls so we can install the `ring` crypto provider ourselves —
|
|
# arti-v2.3.0's tor-rtcompat no longer installs one implicitly. `ring` matches
|
|
# what arti-v2.2.0 effectively used and avoids the Android build pain of
|
|
# aws-lc-rs (which became Arti's default in 2.3.0).
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
|
|
jni = "0.21"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "net", "io-util", "time", "macros"] }
|
|
anyhow = "1"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "abort"
|