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
|
|
@ -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`).
|
||||
|
|
|
|||
Loading…
Reference in a new issue