Merge pull request 'deps: Arti set tor-* 0.46 -> 0.49 (Arti 2.9.0)' (#216) from onionwire/t_30d0f0c6-onionwire-212-arti-upstream-tor-rtcompat into main
Reviewed-on: #216
This commit is contained in:
commit
7665da997e
12 changed files with 967 additions and 708 deletions
|
|
@ -12,13 +12,19 @@ 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` | — |
|
||||
|
||||
`snow`, `rusqlite`, `ratatui`, and the rest are unrelated to Arti and are not
|
||||
part of a Tor upgrade.
|
||||
part of a Tor upgrade. `safelog` lives in the Arti repository and moves in
|
||||
lockstep with the `tor-*` set: a stale direct `safelog` pin puts two copies in
|
||||
the graph, and `HsId::display_redacted` then resolves against the wrong trait
|
||||
(`error[E0599]: no method named display_redacted`). The SDK workspace
|
||||
(`crates/onionwire-sdk`) has its own `arti-client` pin and lockfile; bump it
|
||||
too.
|
||||
|
||||
Two crate features re-expose Arti's TLS backends, which Arti marks
|
||||
**non-additive** — exactly one may be selected per build graph:
|
||||
|
|
@ -29,16 +35,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 all of the crates above together in lockstep.
|
||||
Bump them as **one set**. A mixed set (e.g. `arti-client` 0.47 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.
|
||||
|
||||
## 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`).
|
||||
|
|
@ -79,16 +85,22 @@ issue the watcher files.
|
|||
|
||||
1. Read the upstream release notes (Arti tags: <https://gitlab.torproject.org/tpo/core/arti/-/releases>)
|
||||
and the CHANGELOG for breaking API changes. Check the new MSRV.
|
||||
2. Branch from `main`; bump all four requirements in `[dependencies]` of
|
||||
`Cargo.toml` together, and `rust-version` if the floor moved.
|
||||
2. Branch from `main`; bump every Arti-repository pin in `[dependencies]` of
|
||||
`Cargo.toml` together (`arti-client`, `tor-cell`, `tor-hsservice`,
|
||||
`tor-rtcompat`, and `safelog`), the matching `arti-client` pin in
|
||||
`crates/onionwire-sdk/Cargo.toml`, and `rust-version` if the floor moved.
|
||||
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
|
||||
moving alone is a sign the set is not actually lockstep — stop and look.
|
||||
Then refresh the SDK workspace's separate lockfile:
|
||||
```
|
||||
( cd crates/onionwire-sdk && cargo update -p arti-client )
|
||||
```
|
||||
4. Build and run the offline suite:
|
||||
```
|
||||
cargo test --locked
|
||||
|
|
|
|||
|
|
@ -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,8 +340,8 @@ 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 proxy -p` binds `127.0.0.1`/`::1`; arti 2.6.0 / `tor-config` 0.46
|
||||
`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.49
|
||||
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,
|
||||
not an access-controlled one. The app gates the spawn on the unlocked store
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue