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

@ -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