deps(tor): arti-client / tor-* 0.46 -> 0.49, safelog 0.9 -> 0.10
Some checks failed
ci / test (pull_request) Successful in 38m22s
ci / sdk (pull_request) Successful in 8m10s
android-ci / android (pull_request) Failing after 1h10m29s

Arti publishes the whole tor-* family in lockstep, so arti-client,
tor-cell, tor-hsservice and tor-rtcompat move together in both
workspaces (root crate and crates/onionwire-sdk, which pins the feature
set for Android).

Arti 0.49 depends on safelog 0.10. OnionWire names safelog directly for
`DisplayRedacted` on HsId, so leaving the direct dep at 0.9 puts two
safelog versions in the graph and two incompatible DisplayRedacted
traits, and src/hs.rs stops compiling. Bumped to 0.10; the trait's
method surface (display_redacted / display_unredacted) is unchanged.

Arti 0.49's own MSRV is 1.92, still below the 1.98 floor the default
cuprate-daemon graph sets (tapes needs VecDeque::pop_front_if, 1.93),
so no toolchain or CI image change. The hs.rs workarounds are still
correct in 0.49: tor-hsservice 0.49's OVERALL_UPLOAD_TIMEOUT is still
5 min (PUBLISH_WAIT 360s covers it), the default predicted exit ports
are still 80/443 (we override to empty), and the status State variants
hs_is_ready matches on are unchanged.

Closes #209
This commit is contained in:
onionwire-bot 2026-12-02 02:04:00 -05:00
commit 6feabee734
No known key found for this signature in database
11 changed files with 954 additions and 704 deletions

View file

@ -12,13 +12,16 @@ 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` | `0.10` | direct, for `DisplayRedacted` on `HsId`; Arti 0.49 moved to safelog 0.10, and a graph with both 0.9 and 0.10 has two incompatible `DisplayRedacted` traits |
`snow`, `rusqlite`, `ratatui`, and the rest are unrelated to Arti and are not
part of a Tor upgrade.
part of a Tor upgrade. `safelog` is the exception: OnionWire names it directly
only because it redacts `HsId` in logs, and Arti's safelog major tracks its own
releases, so bump it with the set (`0.46` used safelog `0.9`).
Two crate features re-expose Arti's TLS backends, which Arti marks
**non-additive** — exactly one may be selected per build graph:
@ -29,16 +32,16 @@ Two crate features re-expose Arti's TLS backends, which Arti marks
features (without it the rustls backend compiles with no provider).
* `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
not a configuration anyone tests upstream, and cargo will usually refuse or
silently pick one `tor-*` version and mismatched `tor-*` internals fail at
runtime.
Published Arti releases move the four `arti-*` / `tor-*` crates above together
in lockstep. Bump them as **one set**. A mixed set (e.g. `arti-client` 0.49
with `tor-hsservice` 0.48) 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.
## 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`).
@ -84,7 +87,7 @@ issue the watcher files.
3. Refresh the lockfile (CI builds with `--locked` and `Cargo.lock` is
committed):
```
cargo update -p arti-client -p tor-cell -p tor-hsservice -p tor-rtcompat
cargo update -p arti-client -p tor-cell -p tor-hsservice -p tor-rtcompat -p safelog
git diff --stat Cargo.lock
```
Expect the whole `tor-*` family to move in the diff. A single `tor-*` crate

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.