ci: build the default graph on Rust 1.98, not 1.91
`cuprate-daemon` is a default feature, so `cargo test --locked` in the Pi CI job compiles `tapes`. That crate calls `VecDeque::pop_front_if`, stable only since 1.93. `rust:1.91-bookworm` dies with `error[E0658]: use of unstable library feature 'vec_deque_pop_if'` after the rest of the graph has already built. The Android workflows were already on 1.98 for this; ci.yml and release.yml were left on 1.91 when the feature was off, and that is no longer true. `rust-version` moves with the image. cargo checks it before features, so a 1.91 compiler must be refused up front instead of fifteen minutes into `tapes`. `--no-default-features` would still compile on 1.91; the declared floor is the default build's floor, which is what CI and `cargo build` run.
This commit is contained in:
parent
d89539e8b0
commit
7391c5b7a4
12 changed files with 53 additions and 33 deletions
|
|
@ -80,13 +80,15 @@ format (`<hash> onionwire-<target>`).
|
|||
|
||||
### Option B — build from source
|
||||
|
||||
Needs [Rust](https://rustup.rs/) **1.91+** (`edition = "2024"`; `Cargo.toml`
|
||||
`rust-version = "1.91"`; Arti 0.46 requires 1.91). Do not install `tor`.
|
||||
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
|
||||
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`.
|
||||
|
||||
```bash
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
source "$HOME/.cargo/env"
|
||||
rustc --version # must be 1.91 or newer
|
||||
rustc --version # must be 1.98 or newer
|
||||
```
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue