android: pin the Android Rust toolchain to 1.98 (cuprated needs >= 1.93)
Some checks failed
android-ci / android (pull_request) Failing after 47m45s
ci / test (pull_request) Successful in 5m11s
ci / sdk (pull_request) Successful in 1m6s
ci / fuzz (pull_request) Successful in 4m44s

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.
This commit is contained in:
sirius 2026-09-18 16:11:43 -04:00
commit 86a1de814c
No known key found for this signature in database
3 changed files with 23 additions and 3 deletions

View file

@ -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 "<prefix>-<n>".