Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
7665da997e 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
All checks were successful
android-ci / android (push) Successful in 19m44s
ci / test (push) Successful in 29m45s
ci / sdk (push) Successful in 2m2s
Reviewed-on: #216
2026-12-03 05:33:01 +00:00
agent
90d982b369
deps: bump the Arti set tor-* 0.46 -> 0.49 (Arti 2.9.0)
All checks were successful
ci / test (pull_request) Successful in 31m8s
ci / sdk (pull_request) Successful in 1m34s
android-ci / android (pull_request) Successful in 18m10s
Arti publishes these in lockstep. Bumped together:
- arti-client 0.46 -> 0.49 (root + crates/onionwire-sdk, both lockfiles)
- tor-cell, tor-hsservice, tor-rtcompat 0.46 -> 0.49
- safelog 0.9 -> 0.10 (same repo; 0.49's HsId implements safelog 0.10's
  DisplayRedacted, so the old direct pin broke display_redacted)

Arti 0.49 (Arti 2.9.0, 2026-12-01) carries a medium-severity security fix
(TROVE-2026-078, custom build flags) and two low-severity fixes.

MSRV unchanged: Arti 0.49 needs rustc 1.92, the repo floor stays 1.98
(cuprate-daemon / tapes). Only docs/comments moved; src/hs.rs workarounds
rechecked against 0.49: tor-hsservice OVERALL_UPLOAD_TIMEOUT is still 5 min
(PUBLISH_WAIT 360s stands) and tor-config's Listen is still IP-only.

Verified: cargo test --locked (173 lib + all integration suites), clippy
--locked --all-targets -D warnings, SDK cargo test/clippy, live ignored
tor_hs + two_node tests, and scripts/build-android-local.sh (APK + AAR).
2026-12-02 02:37:17 -05:00
488eb94e28 Merge pull request 'wallet: derive readiness from the wallet's get_height, not a nonexistent get_info' (#204) from wt/t_e4e55a04 into main
All checks were successful
android-ci / android (push) Successful in 11m31s
ci / test (push) Successful in 29m44s
ci / sdk (push) Successful in 2m6s
Reviewed-on: #204
2026-10-31 05:49:06 +00:00
12 changed files with 967 additions and 708 deletions

View file

@ -57,7 +57,7 @@ env:
# feature 'vec_deque_pop_if'`, after the job has already built the rest of # 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 # 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 # 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 # (Arti 0.49's floor); the default build does not, so the image follows the
# default build. # default build.
RUST_IMAGE: rust:1.98-bookworm RUST_IMAGE: rust:1.98-bookworm
CARGO_REGISTRY_VOLUME: onionwire-cargo-registry CARGO_REGISTRY_VOLUME: onionwire-cargo-registry

790
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
name = "onionwire" name = "onionwire"
version = "0.2.1" version = "0.2.1"
edition = "2024" 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 # `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 # `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` # 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, # 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 # 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 # 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. # OnionWire's Arti is the only Tor in the process.
cuprate-daemon = ["dep:cuprated", "dep:toml"] cuprate-daemon = ["dep:cuprated", "dep:toml"]
[dependencies] [dependencies]
arti-client = { version = "0.46", default-features = false, features = [ arti-client = { version = "0.49", default-features = false, features = [
"tokio", "tokio",
"onion-service-client", "onion-service-client",
"onion-service-service", "onion-service-service",
"compression", "compression",
] } ] }
futures = "0.3" futures = "0.3"
safelog = "0.9" safelog = "0.10"
ed25519-dalek = { version = "2", features = ["rand_core"] } ed25519-dalek = { version = "2", features = ["rand_core"] }
rand = "0.8" rand = "0.8"
rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] } rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] } tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] }
tor-cell = "0.46" tor-cell = "0.49"
tor-hsservice = "0.46" tor-hsservice = "0.49"
tor-rtcompat = { version = "0.46", features = ["tokio"] } tor-rtcompat = { version = "0.49", features = ["tokio"] }
# Direct dependency only to select rustls's crypto provider: Arti pulls rustls in # Direct dependency only to select rustls's crypto provider: Arti pulls rustls in
# through `tor-rtcompat` with `default-features = false`, and rustls 0.23 # 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 # resolves its provider from its OWN `ring`/`aws-lc-rs` features, so without this

View file

@ -103,7 +103,7 @@ format (`<hash> onionwire-<target>`).
### Option B — build from source ### Option B — build from source
Needs [Rust](https://rustup.rs/) **1.98+** (`edition = "2024"`; `Cargo.toml` 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 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`. (`tapes` calls `VecDeque::pop_front_if`, stable since 1.93). Do not install `tor`.

File diff suppressed because it is too large Load diff

View file

@ -33,7 +33,7 @@ cuprate-daemon = ["onionwire/cuprate-daemon"]
[dependencies] [dependencies]
onionwire = { path = "../..", default-features = false, features = ["rustls"] } onionwire = { path = "../..", default-features = false, features = ["rustls"] }
# `static-sqlite`: Android has no system libsqlite3 to link against. # `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", "tokio",
"onion-service-client", "onion-service-client",
"onion-service-service", "onion-service-service",

View file

@ -5,7 +5,7 @@ runs on. An Android peer and a Linux peer that exchange invites interoperate —
there is one protocol, not two. there is one protocol, not two.
This is **not** a WebView wrapper and **not** a client for a hosted service. 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' `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. onions directly. There is no `tor` binary, no torrc, no Orbot as the pipe.

View file

@ -12,13 +12,19 @@ Direct dependencies that come from the Arti repository, exactly as
| crate | requirement | features in `Cargo.toml` | | crate | requirement | features in `Cargo.toml` |
|---|---|---| |---|---|---|
| `arti-client` | `0.46` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` | | `arti-client` | `0.49` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` |
| `tor-cell` | `0.46` | — | | `tor-cell` | `0.49` | — |
| `tor-hsservice` | `0.46` | — | | `tor-hsservice` | `0.49` | — |
| `tor-rtcompat` | `0.46` | `tokio` | | `tor-rtcompat` | `0.49` | `tokio` |
| `safelog` | `0.10` | — |
`snow`, `rusqlite`, `ratatui`, and the rest are unrelated to Arti and are not `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 Two crate features re-expose Arti's TLS backends, which Arti marks
**non-additive** — exactly one may be selected per build graph: **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). features (without it the rustls backend compiles with no provider).
* `native-tls` → opt-in only, via OpenSSL. * `native-tls` → opt-in only, via OpenSSL.
Published Arti releases move all four crates together in lockstep. Bump them as Published Arti releases move all of the crates above together in lockstep.
**one set**. A mixed set (e.g. `arti-client` 0.47 with `tor-hsservice` 0.46) is Bump them as **one set**. A mixed set (e.g. `arti-client` 0.47 with
not a configuration anyone tests upstream, and cargo will usually refuse or `tor-hsservice` 0.49) is not a configuration anyone tests upstream, and cargo
silently pick one `tor-*` version and mismatched `tor-*` internals fail at will usually refuse or silently pick one `tor-*` version and mismatched
runtime. `tor-*` internals fail at runtime.
## Toolchain floor ## Toolchain floor
**rustc 1.98+.** `Cargo.toml` sets `edition = "2024"` and `rust-version = "1.98"`. **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 `cuprate-daemon` feature (`tapes` calls `VecDeque::pop_front_if`, stable since
1.93). CI builds inside `rust:1.98-bookworm` 1.93). CI builds inside `rust:1.98-bookworm`
(`RUST_IMAGE` in `.forgejo/workflows/ci.yml` and `release.yml`). (`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>) 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. and the CHANGELOG for breaking API changes. Check the new MSRV.
2. Branch from `main`; bump all four requirements in `[dependencies]` of 2. Branch from `main`; bump every Arti-repository pin in `[dependencies]` of
`Cargo.toml` together, and `rust-version` if the floor moved. `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 3. Refresh the lockfile (CI builds with `--locked` and `Cargo.lock` is
committed): 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 git diff --stat Cargo.lock
``` ```
Expect the whole `tor-*` family to move in the diff. A single `tor-*` crate 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. 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: 4. Build and run the offline suite:
``` ```
cargo test --locked cargo test --locked

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`. every in-process surface still says `testnet only — mainnet is unvalidated`.
Cross-compiled is not device-proven. Cross-compiled is not device-proven.
- Cuprate's own `arti` feature is off (its Tor stack is `arti-client` 0.44, - 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 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, peers. No Tor is on the chain path — Tor is the messenger's transport here,
not the chain's. 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 `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 bundled `arti` **binary** run as a child (`arti proxy -p <port>`) — a
second, separate Tor client with its own state and cache dirs, because 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 (`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 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, 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 not an access-controlled one. The app gates the spawn on the unlocked store

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 Cross-compiled is not device-proven. Pointing a mainnet wallet at it is not
something this build claims to do. something this build claims to do.
- **No Tor on the chain path.** Cuprate's `arti` feature is off (arti-client - **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. messenger only.
- **Inbound P2P off**, restricted RPC listener disabled. Unrestricted RPC is - **Inbound P2P off**, restricted RPC listener disabled. Unrestricted RPC is
loopback 18081. `--trusted-daemon` still never passed. loopback 18081. `--trusted-daemon` still never passed.

View file

@ -17,7 +17,7 @@
//! name reservation), so a pinned revision is the only honest way to depend on //! name reservation), so a pinned revision is the only honest way to depend on
//! it. //! it.
//! * Cuprate's own `arti` feature stays **off**. Its Tor stack is arti 0.44, //! * 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. //! clearnet-only: OnionWire's Arti is the only Tor in the process.
//! * The **unrestricted** RPC listener binds `127.0.0.1:<port>` — the address //! * The **unrestricted** RPC listener binds `127.0.0.1:<port>` — the address
//! `WalletChild::daemon_address` returns for a local source. The restricted //! `WalletChild::daemon_address` returns for a local source. The restricted

View file

@ -13,7 +13,7 @@
//! compiled-in public node. //! compiled-in public node.
//! * A `.onion` daemon is reached through a SOCKS child: the bundled `arti` //! * A `.onion` daemon is reached through a SOCKS child: the bundled `arti`
//! binary run as `arti proxy -p <port>`, with **TCP loopback only** (arti //! binary run as `arti proxy -p <port>`, with **TCP loopback only** (arti
//! 2.6.0 / tor-config 0.46 have no AF_UNIX listener — `Listen` is IP-only and //! 2.6.0 / tor-config 0.49 have no AF_UNIX listener — `Listen` is IP-only and
//! arti's `port_info` says AF_UNIX is future work, arti#1965). The wallet //! arti's `port_info` says AF_UNIX is future work, arti#1965). The wallet
//! child is then pointed at it with `--proxy socks5://127.0.0.1:<port>` //! child is then pointed at it with `--proxy socks5://127.0.0.1:<port>`
//! *and* `--daemon-address <onion>:<port>`. The messenger's in-process //! *and* `--daemon-address <onion>:<port>`. The messenger's in-process
@ -290,7 +290,7 @@ impl WalletChild {
/// one app never share state silently. /// one app never share state silently.
/// ///
/// `-p` is the arti CLI's `socks-port` argument (arti 2.6.0 `src/lib.rs`); /// `-p` is the arti CLI's `socks-port` argument (arti 2.6.0 `src/lib.rs`);
/// it binds localhost only (`Listen::new_localhost`, tor-config 0.46 /// it binds localhost only (`Listen::new_localhost`, tor-config 0.49
/// `listen.rs`: "We interpret standalone ports to be localhost /// `listen.rs`: "We interpret standalone ports to be localhost
/// addresses" — `[::1, 127.0.0.1]`). There is no Unix-socket listen target /// addresses" — `[::1, 127.0.0.1]`). There is no Unix-socket listen target
/// to prefer: `Listen` is IP-only and arti's `port_info` says AF_UNIX is /// to prefer: `Listen` is IP-only and arti's `port_info` says AF_UNIX is
@ -1611,7 +1611,7 @@ mod tests {
"{argv:?}" "{argv:?}"
); );
// `-p` binds localhost only (arti's `socks-port` arg); there is no // `-p` binds localhost only (arti's `socks-port` arg); there is no
// Unix-socket listen target in arti 2.6.0 / tor-config 0.46. // Unix-socket listen target in arti 2.6.0 / tor-config 0.49.
assert!(!argv.iter().any(|a| a == "--port"), "{argv:?}"); assert!(!argv.iter().any(|a| a == "--port"), "{argv:?}");
assert!( assert!(
argv.iter() argv.iter()