From 86a1de814c6b97ee74ccf8b9d41ec85303d23b37 Mon Sep 17 00:00:00 2001 From: sirius Date: Fri, 18 Sep 2026 16:11:43 -0400 Subject: [PATCH] android: pin the Android Rust toolchain to 1.98 (cuprated needs >= 1.93) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Android jobs pinned `RUST_TOOLCHAIN: "1.91"` — the workspace MSRV — and the cuprated graph does not build on it. `tapes`, a Cuprate dependency this repo cannot patch, calls `VecDeque::pop_front_if`, stable only from 1.93: error[E0658]: use of unstable library feature `vec_deque_pop_if` --> /cargo/git/checkouts/tapes-.../src/tapes/rolling_tape.rs:396:34 1.98 is the stable release the graph is built and tested with on the dev machine (rustc 1.98.1) and the one the cross-compile spike used. `ci.yml`, `release.yml` and the `rust-version = "1.91"` MSRV are untouched: the feature-off workspace builds on 1.91, and moving the MSRV is a separate decision, flagged in the PR. Both workflows, and `android/CUPRATE_DAEMON.md` records it as a pitfall. --- .forgejo/workflows/android-ci.yml | 10 +++++++++- .forgejo/workflows/android-release.yml | 5 ++++- android/CUPRATE_DAEMON.md | 11 ++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/android-ci.yml b/.forgejo/workflows/android-ci.yml index d91a327..1ec5565 100644 --- a/.forgejo/workflows/android-ci.yml +++ b/.forgejo/workflows/android-ci.yml @@ -55,7 +55,15 @@ env: ONIONWIRE_ANDROID_ABI: arm64-v8a ANDROID_IMAGE: debian:bookworm ANDROID_CMDLINE_TOOLS_URL: https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip - RUST_TOOLCHAIN: "1.91" + # Not the workspace MSRV (`rust-version = "1.91"`, and `ci.yml` stays on it): the + # cuprated graph needs more. `tapes` (a Cuprate dependency) calls + # `VecDeque::pop_front_if`, stable only from **1.93**, so 1.91 dies with + # `error[E0658]: use of unstable library feature 'vec_deque_pop_if'` — 15 minutes + # into the Android job, after 400-odd crates, in a dependency this repo cannot + # patch. 1.98 is the stable release this graph is built and tested with on the dev + # machine. Bumping `ci.yml` too is a separate decision (it would move the MSRV for + # the whole workspace) and is not this workflow's to make. + RUST_TOOLCHAIN: "1.98" DOCKER_STATIC_URL: https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz # Distinct container prefix: run ids are per-workflow, so this workflow and # android-release.yml can both be holding a container named "-". diff --git a/.forgejo/workflows/android-release.yml b/.forgejo/workflows/android-release.yml index 3218c00..a1d2874 100644 --- a/.forgejo/workflows/android-release.yml +++ b/.forgejo/workflows/android-release.yml @@ -61,7 +61,10 @@ env: ONIONWIRE_REQUIRE_RELEASE_KEY: "true" ANDROID_IMAGE: debian:bookworm ANDROID_CMDLINE_TOOLS_URL: https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip - RUST_TOOLCHAIN: "1.91" + # Same as android-ci.yml: the cuprated graph needs >= 1.93 (`tapes` uses + # `VecDeque::pop_front_if`), and 1.98 is what this graph is built with. The + # workspace MSRV in Cargo.toml is untouched; `ci.yml` and `release.yml` keep 1.91. + RUST_TOOLCHAIN: "1.98" DOCKER_STATIC_URL: https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz BUILD_CONTAINER: onionwire-android-${{ github.run_id }} SDK_VOLUME: onionwire-android-sdk diff --git a/android/CUPRATE_DAEMON.md b/android/CUPRATE_DAEMON.md index a61619d..946b674 100644 --- a/android/CUPRATE_DAEMON.md +++ b/android/CUPRATE_DAEMON.md @@ -53,7 +53,7 @@ script emits `rustc-link-lib=static=stdc++` against the NDK's *stub* -Wl,--exclude-libs,libc++abi.a ``` -Four more things the build has to get right, each of which fails as something +Five more things the build has to get right, each of which fails as something else: 1. **`ANDROID_NDK` must be exported**, not only `ANDROID_NDK_HOME` / `NDK_HOME`. @@ -78,6 +78,15 @@ else: is `cmake` not installed?* — surfacing as Gradle's "cargo finished with non-zero exit value 101", which reads like a Rust error and is not one. `android-ci.yml` and `android-release.yml` both install it. +5. **The Rust toolchain must be >= 1.93**, not the workspace MSRV of 1.91. + `tapes`, a Cuprate dependency this repo cannot patch, calls + `VecDeque::pop_front_if`, which is stable only from 1.93. On 1.91 the Android job + compiles ~400 crates and then dies with + `error[E0658]: use of unstable library feature 'vec_deque_pop_if'`. + `android-ci.yml` and `android-release.yml` pin `RUST_TOOLCHAIN: "1.98"` (the + stable release this graph is built and tested with); `ci.yml`, `release.yml` and + the `rust-version = "1.91"` MSRV are untouched, because the feature-off workspace + does not need the bump and moving the MSRV is a separate decision. ## What ends up in the APK