deps(tor): arti-client / tor-* 0.46 -> 0.49, safelog 0.9 -> 0.10
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:
parent
20d2d00e4d
commit
6feabee734
11 changed files with 954 additions and 704 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue