chore(toolchain): pin Rust to 1.98.1
Intrepid/Prometeu/Runtime/pipeline/head There was a failure building this commit
Intrepid/Prometeu/Runtime/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -13,9 +13,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- name: Install repository Rust toolchain
|
||||||
with:
|
run: |
|
||||||
components: rustfmt, clippy, llvm-tools-preview
|
toolchain=$(python3 -c 'import tomllib; print(tomllib.load(open("rust-toolchain.toml", "rb"))["toolchain"]["channel"])')
|
||||||
|
rustup toolchain install "$toolchain" --profile minimal
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
|||||||
@@ -60,11 +60,21 @@ Other ecosystem commands, such as build, pack, and verification tooling, are not
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Rust toolchain from [rust-toolchain.toml](rust-toolchain.toml)
|
- Rust **1.98.1**, pinned in [rust-toolchain.toml](rust-toolchain.toml)
|
||||||
- `rustup` for toolchain installation and management
|
- `rustup` for toolchain installation and management
|
||||||
- `cargo-llvm-cov` for coverage targets such as `make coverage` and `make ci-domains`
|
- `cargo-llvm-cov` for coverage targets such as `make coverage` and `make ci-domains`
|
||||||
- a local graphical environment for desktop runtime commands
|
- a local graphical environment for desktop runtime commands
|
||||||
|
|
||||||
|
From the repository root, install and verify the pinned toolchain:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rustup toolchain install 1.98.1 --profile minimal --component rustfmt,clippy
|
||||||
|
rustc --version
|
||||||
|
```
|
||||||
|
|
||||||
|
Rustup selects the pinned version automatically for commands run in this repository.
|
||||||
|
CI installs the toolchain from the same file.
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
Build the workspace:
|
Build the workspace:
|
||||||
|
|||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
id: LSN-0075
|
||||||
|
ticket: rust-toolchain-pin
|
||||||
|
title: One source for the Rust compiler version
|
||||||
|
created: 2026-11-10
|
||||||
|
tags: [tooling, ci]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Published configuration
|
||||||
|
|
||||||
|
Historical source: accepted DEC-0070, implemented through PLN-0201 from AGD-0074.
|
||||||
|
The selected compiler is Rust 1.98.1 in
|
||||||
|
[rust-toolchain.toml](../../../rust-toolchain.toml), with installation instructions
|
||||||
|
in the [README](../../../README.md#requirements). No runtime spec changed.
|
||||||
|
|
||||||
|
## A moving channel does not preserve a tested environment
|
||||||
|
|
||||||
|
`stable` can resolve to different compilers across machines and installation
|
||||||
|
dates. An exact version preserves the compiler used in existing qualifications.
|
||||||
|
Cargo's `rust-version` expresses a minimum and does not replace that selection.
|
||||||
|
|
||||||
|
The [CI workflow](../../../.github/workflows/ci.yml) reads the channel from the
|
||||||
|
toolchain file and passes it explicitly to `rustup toolchain install`, avoiding
|
||||||
|
another version literal to update. Implicit installation encountered cache rename
|
||||||
|
errors during verification; explicit installation recognized the existing compiler
|
||||||
|
and components. The shared provisioner installs formatting, Clippy and coverage
|
||||||
|
components before the quality gate.
|
||||||
|
|
||||||
|
## Evidence and limits
|
||||||
|
|
||||||
|
On macOS aarch64, the numbered toolchain selected rustc/cargo 1.98.1. Workspace
|
||||||
|
formatting and `cargo check --workspace --all-targets --all-features --locked`
|
||||||
|
passed. Explicit installation and CI version extraction also passed. This controls
|
||||||
|
compiler drift; it does not establish the cause or resolution of the original
|
||||||
|
Linux compatibility failure.
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "stable"
|
channel = "1.98.1"
|
||||||
components = ["rustfmt", "clippy"]
|
components = ["rustfmt", "clippy"]
|
||||||
|
|||||||
Reference in New Issue
Block a user