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
|
|
@ -56,8 +56,8 @@ env:
|
|||
# On `rust:1.91-bookworm` that is `error[E0658]: use of unstable library
|
||||
# feature 'vec_deque_pop_if'`, after the job has already built the rest of
|
||||
# the graph. 1.98 is the release this graph is built with on the dev machine
|
||||
# and in the Android workflows. `--no-default-features` still builds on 1.91
|
||||
# (Arti 0.46's floor); the default build does not, so the image follows the
|
||||
# and in the Android workflows. `--no-default-features` still builds on 1.92
|
||||
# (Arti 0.49's floor); the default build does not, so the image follows the
|
||||
# default build.
|
||||
RUST_IMAGE: rust:1.98-bookworm
|
||||
CARGO_REGISTRY_VOLUME: onionwire-cargo-registry
|
||||
|
|
|
|||
792
Cargo.lock
generated
792
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
14
Cargo.toml
14
Cargo.toml
|
|
@ -2,7 +2,7 @@
|
|||
name = "onionwire"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
# 1.98, not 1.91. Arti 0.46 builds on 1.91, but the default feature set includes
|
||||
# 1.98, not 1.92. Arti 0.49 builds on 1.92, but the default feature set includes
|
||||
# `cuprate-daemon`, and `tapes` (a Cuprate dep this repo cannot patch) calls
|
||||
# `VecDeque::pop_front_if`, stable only from 1.93. 1.98 is the release CI and
|
||||
# the Android workflows actually build that graph with. `--no-default-features`
|
||||
|
|
@ -36,26 +36,26 @@ rustls = ["arti-client/rustls"]
|
|||
# Cuprate's own `arti` feature stays OFF (and is off in its default feature set,
|
||||
# which is why `default-features = false` is load-bearing): it would link a
|
||||
# second, older Tor stack (arti-client 0.44, which cannot unify with this
|
||||
# crate's 0.46) next to OnionWire's. The in-process daemon runs clearnet-only;
|
||||
# crate's 0.49) next to OnionWire's. The in-process daemon runs clearnet-only;
|
||||
# OnionWire's Arti is the only Tor in the process.
|
||||
cuprate-daemon = ["dep:cuprated", "dep:toml"]
|
||||
|
||||
[dependencies]
|
||||
arti-client = { version = "0.46", default-features = false, features = [
|
||||
arti-client = { version = "0.49", default-features = false, features = [
|
||||
"tokio",
|
||||
"onion-service-client",
|
||||
"onion-service-service",
|
||||
"compression",
|
||||
] }
|
||||
futures = "0.3"
|
||||
safelog = "0.9"
|
||||
safelog = "0.10"
|
||||
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
||||
rand = "0.8"
|
||||
rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] }
|
||||
tor-cell = "0.46"
|
||||
tor-hsservice = "0.46"
|
||||
tor-rtcompat = { version = "0.46", features = ["tokio"] }
|
||||
tor-cell = "0.49"
|
||||
tor-hsservice = "0.49"
|
||||
tor-rtcompat = { version = "0.49", features = ["tokio"] }
|
||||
# Direct dependency only to select rustls's crypto provider: Arti pulls rustls in
|
||||
# through `tor-rtcompat` with `default-features = false`, and rustls 0.23
|
||||
# resolves its provider from its OWN `ring`/`aws-lc-rs` features, so without this
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ format (`<hash> onionwire-<target>`).
|
|||
### Option B — build from source
|
||||
|
||||
Needs [Rust](https://rustup.rs/) **1.98+** (`edition = "2024"`; `Cargo.toml`
|
||||
`rust-version = "1.98"`). Arti 0.46 itself builds on 1.91, but the default
|
||||
`rust-version = "1.98"`). Arti 0.49 itself builds on 1.92, but the default
|
||||
feature set includes the in-process chain daemon, and that graph does not
|
||||
(`tapes` calls `VecDeque::pop_front_if`, stable since 1.93). Do not install `tor`.
|
||||
|
||||
|
|
|
|||
807
crates/onionwire-sdk/Cargo.lock
generated
807
crates/onionwire-sdk/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -33,7 +33,7 @@ cuprate-daemon = ["onionwire/cuprate-daemon"]
|
|||
[dependencies]
|
||||
onionwire = { path = "../..", default-features = false, features = ["rustls"] }
|
||||
# `static-sqlite`: Android has no system libsqlite3 to link against.
|
||||
arti-client = { version = "0.46", default-features = false, features = [
|
||||
arti-client = { version = "0.49", default-features = false, features = [
|
||||
"tokio",
|
||||
"onion-service-client",
|
||||
"onion-service-service",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ runs on. An Android peer and a Linux peer that exchange invites interoperate —
|
|||
there is one protocol, not two.
|
||||
|
||||
This is **not** a WebView wrapper and **not** a client for a hosted service.
|
||||
Each install runs Arti in-process (`arti-client` 0.46, `onion-service-client` +
|
||||
Each install runs Arti in-process (`arti-client` 0.49, `onion-service-client` +
|
||||
`onion-service-service`), hosts its own v3 onion service, and dials friends'
|
||||
onions directly. There is no `tor` binary, no torrc, no Orbot as the pipe.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
//! name reservation), so a pinned revision is the only honest way to depend on
|
||||
//! it.
|
||||
//! * Cuprate's own `arti` feature stays **off**. Its Tor stack is arti 0.44,
|
||||
//! which cannot unify with this crate's arti 0.46, and this daemon is
|
||||
//! which cannot unify with this crate's arti 0.49, and this daemon is
|
||||
//! clearnet-only: OnionWire's Arti is the only Tor in the process.
|
||||
//! * The **unrestricted** RPC listener binds `127.0.0.1:<port>` — the address
|
||||
//! `WalletChild::daemon_address` returns for a local source. The restricted
|
||||
|
|
|
|||
Loading…
Reference in a new issue