deps: bump the Arti tor-* set to 0.49
tor-cell, tor-hsservice, tor-rtcompat and arti-client move together from 0.46 to 0.49 (Arti 2.9.0). safelog 0.9 -> 0.10 follows the set: it is a direct dependency only for `DisplayRedacted`, and the 0.9 trait is a different type from the one `HsId` implements under 0.49. MSRV: Arti 0.49 requires rustc 1.92 (was 1.91). The declared floor stays 1.98 -- the default `cuprate-daemon` graph is still what sets it -- so `rust-version`, RUST_IMAGE and the README install floor are unchanged; only the "Arti itself builds on X" notes move to 1.92. Upstream changes that could touch us, none of which do: - tor-hsservice dropped the deprecated `onion_name()`; we use `onion_address()`. - tor-cell's `Begin` API changed; we only decode `Connected`. - tor-rtcompat's `Runtime` grew a `JoinSetProvider` bound; we use `PreferredRuntime` and implement no Runtime. The src/hs.rs workarounds (PUBLISH_WAIT, CBT floors, empty predicted ports) are untouched and their guard tests still pass. Verified: - cargo test --locked: 577 passed, 0 failed - cargo clippy --locked --all-targets -- -D warnings: clean - cargo test --locked --test tor_hs -- --ignored: two-node publish, byte pipe, restart and dormant path ok (106s, live Tor network) - cargo test --locked --test two_node -- --ignored: plaintext absent from both nodes' arti/cache dirs (51s, live Tor network) - crates/onionwire-sdk: cargo check --locked --all-targets ok
This commit is contained in:
parent
20d2d00e4d
commit
0cacd41002
10 changed files with 953 additions and 698 deletions
14
Cargo.toml
14
Cargo.toml
|
|
@ -2,7 +2,7 @@
|
|||
name = "onionwire"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
# 1.98, not 1.91. Arti 0.46 builds on 1.91, but the default feature set includes
|
||||
# 1.98, not 1.92. Arti 0.49 builds on 1.92, but the default feature set includes
|
||||
# `cuprate-daemon`, and `tapes` (a Cuprate dep this repo cannot patch) calls
|
||||
# `VecDeque::pop_front_if`, stable only from 1.93. 1.98 is the release CI and
|
||||
# the Android workflows actually build that graph with. `--no-default-features`
|
||||
|
|
@ -36,26 +36,26 @@ rustls = ["arti-client/rustls"]
|
|||
# Cuprate's own `arti` feature stays OFF (and is off in its default feature set,
|
||||
# which is why `default-features = false` is load-bearing): it would link a
|
||||
# second, older Tor stack (arti-client 0.44, which cannot unify with this
|
||||
# crate's 0.46) next to OnionWire's. The in-process daemon runs clearnet-only;
|
||||
# crate's 0.49) next to OnionWire's. The in-process daemon runs clearnet-only;
|
||||
# OnionWire's Arti is the only Tor in the process.
|
||||
cuprate-daemon = ["dep:cuprated", "dep:toml"]
|
||||
|
||||
[dependencies]
|
||||
arti-client = { version = "0.46", default-features = false, features = [
|
||||
arti-client = { version = "0.49", default-features = false, features = [
|
||||
"tokio",
|
||||
"onion-service-client",
|
||||
"onion-service-service",
|
||||
"compression",
|
||||
] }
|
||||
futures = "0.3"
|
||||
safelog = "0.9"
|
||||
safelog = "0.10"
|
||||
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
||||
rand = "0.8"
|
||||
rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] }
|
||||
tor-cell = "0.46"
|
||||
tor-hsservice = "0.46"
|
||||
tor-rtcompat = { version = "0.46", features = ["tokio"] }
|
||||
tor-cell = "0.49"
|
||||
tor-hsservice = "0.49"
|
||||
tor-rtcompat = { version = "0.49", features = ["tokio"] }
|
||||
# Direct dependency only to select rustls's crypto provider: Arti pulls rustls in
|
||||
# through `tor-rtcompat` with `default-features = false`, and rustls 0.23
|
||||
# resolves its provider from its OWN `ring`/`aws-lc-rs` features, so without this
|
||||
|
|
|
|||
Loading…
Reference in a new issue