deps: bump the Arti tor-* set to 0.49
All checks were successful
ci / test (pull_request) Successful in 29m13s
ci / sdk (pull_request) Successful in 1m51s
android-ci / android (pull_request) Successful in 41m55s

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:
agent 2026-12-02 01:57:27 -05:00
commit 0cacd41002
No known key found for this signature in database
10 changed files with 953 additions and 698 deletions

View file

@ -12,10 +12,18 @@ Direct dependencies that come from the Arti repository, exactly as
| crate | requirement | features in `Cargo.toml` |
|---|---|---|
| `arti-client` | `0.46` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` |
| `tor-cell` | `0.46` | — |
| `tor-hsservice` | `0.46` | — |
| `tor-rtcompat` | `0.46` | `tokio` |
| `arti-client` | `0.49` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` |
| `tor-cell` | `0.49` | — |
| `tor-hsservice` | `0.49` | — |
| `tor-rtcompat` | `0.49` | `tokio` |
`safelog` is also an Arti-repository crate, but it is versioned independently of
the `tor-*` set. It is a direct dependency only for the `DisplayRedacted` trait
(`HsId` redaction in `src/hs.rs`): the trait must come from the **same** `safelog`
the `tor-*` crates were built against, or `HsId::display_redacted` /
`display_unredacted` are "not found" on a type that implements the other
crate's trait. `tor-*` 0.49 uses `safelog` 0.10; the root requirement follows
it.
`snow`, `rusqlite`, `ratatui`, and the rest are unrelated to Arti and are not
part of a Tor upgrade.
@ -30,7 +38,7 @@ Two crate features re-expose Arti's TLS backends, which Arti marks
* `native-tls` → opt-in only, via OpenSSL.
Published Arti releases move all four crates together in lockstep. Bump them as
**one set**. A mixed set (e.g. `arti-client` 0.47 with `tor-hsservice` 0.46) is
**one set**. A mixed set (e.g. `arti-client` 0.48 with `tor-hsservice` 0.49) is
not a configuration anyone tests upstream, and cargo will usually refuse or
silently pick one `tor-*` version and mismatched `tor-*` internals fail at
runtime.
@ -38,7 +46,7 @@ runtime.
## Toolchain floor
**rustc 1.98+.** `Cargo.toml` sets `edition = "2024"` and `rust-version = "1.98"`.
Arti 0.46 itself requires only 1.91; the higher floor is the default
Arti 0.49 itself requires only 1.92; the higher floor is the default
`cuprate-daemon` feature (`tapes` calls `VecDeque::pop_front_if`, stable since
1.93). CI builds inside `rust:1.98-bookworm`
(`RUST_IMAGE` in `.forgejo/workflows/ci.yml` and `release.yml`).

View file

@ -321,7 +321,7 @@ the app does not pick a public remote node for them.
every in-process surface still says `testnet only — mainnet is unvalidated`.
Cross-compiled is not device-proven.
- Cuprate's own `arti` feature is off (its Tor stack is `arti-client` 0.44,
which cannot unify with this crate's 0.46), so the in-process daemon's P2P
which cannot unify with this crate's 0.49), so the in-process daemon's P2P
traffic is **clearnet**: your ISP sees that this device talks to Monero
peers. No Tor is on the chain path — Tor is the messenger's transport here,
not the chain's.
@ -340,7 +340,7 @@ the app does not pick a public remote node for them.
`connect()`, and not a C-tor fallback for chat). That listener is the
bundled `arti` **binary** run as a child (`arti proxy -p <port>`) — a
second, separate Tor client with its own state and cache dirs, because
`arti-client` 0.46 exposes no SOCKS listener API. It is TCP loopback only
`arti-client` 0.49 exposes no SOCKS listener API. It is TCP loopback only
(`arti proxy -p` binds `127.0.0.1`/`::1`; arti 2.6.0 / `tor-config` 0.46
have no Unix-socket listen target — arti#1965), and the port is usable by
any local process at the user's privilege level: it is an app-private port,

View file

@ -181,7 +181,7 @@ for the TUI. A build with `--no-default-features` does not include the daemon.
Cross-compiled is not device-proven. Pointing a mainnet wallet at it is not
something this build claims to do.
- **No Tor on the chain path.** Cuprate's `arti` feature is off (arti-client
0.44 vs this crate's 0.46). P2P is **clearnet**. OnionWire's Arti is the
0.44 vs this crate's 0.49). P2P is **clearnet**. OnionWire's Arti is the
messenger only.
- **Inbound P2P off**, restricted RPC listener disabled. Unrestricted RPC is
loopback 18081. `--trusted-daemon` still never passed.