Skip to content

rust: Pin the toolchain to 1.99.0 and declare MSRV - #164

Merged
zackees merged 2 commits into
masterfrom
fix/pin-toolchain
Oct 10, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/pin-toolchain

Conversation

@zackees

@zackees zackees commented Oct 10, 2026

Copy link
Copy Markdown
Member

Fixes #136

rust-toolchain.toml used channel = "stable", so every new Rust release could change clippy -D warnings results or codegen for the whole project at once. The policy and AGENTS.md assume a pinned toolchain.

RED: ci: RED test that the Rust toolchain is pinned with an MSRV

New ci/test_toolchain.py checks that:

  • the channel is an exact X.Y.Z;
  • [workspace.package] declares rust-version, no newer than the channel;
  • every rust/* crate has rust-version.workspace = true.

On master, all 3 tests fail across all 7 crates.

GREEN: rust: Pin the toolchain to 1.99.0 and declare MSRV 1.99

  • channel = "1.99.0", the stable release CI's setup-soldr already resolves.
  • rust-version = "1.99", inherited by every crate.
  • A comment states the bump procedure: one PR, with the full CI matrix.

Evidence

  • python3 -m unittest ci/test_toolchain.py: OK.
  • cargo metadata --locked: OK.
  • The local gate passes and is stamped.

rust-toolchain.toml is a trust surface in local-gate.toml, so CI runs the full Rust and Tier 2 jobs on all three OSes.

zackees and others added 2 commits October 10, 2026 16:35
rust-toolchain.toml uses channel = "stable", which floats, and no crate
declares rust-version.

Refs #136

Co-Authored-By: Claude Opus 5.5 <[email protected]>
channel = "stable" let every new Rust release change clippy -D warnings
results or codegen for the whole project at once. Pin the current stable
(1.99.0, what CI's setup-soldr already resolves) and declare
rust-version = "1.99" in [workspace.package], inherited by every crate,
so Cargo rejects an older compiler with a clear error.

Refs #136

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=02cb9685257022b9ae2fb691c6a9dcab566b35f4 secs=101 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791675536,"gate":"rust/all/fmt","host":"linux-x86_64","key":"d64b4e7191824f44a7fd992007cd9d3b6414602d8fec323d13a4472bf23af8df","lane":"lint","parents":["de786897f541d062362d5be93f1e9035fe674d71"],"secs":18,"stamp":"fd61cbbb34bf0fb1f2a36e43b060c76b","tree":"02cb9685257022b9ae2fb691c6a9dcab566b35f4","v":1,"via":"run"}
Ci-Attestation: {"at":1791675536,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"d64b4e7191824f44a7fd992007cd9d3b6414602d8fec323d13a4472bf23af8df","lane":"lint","parents":["de786897f541d062362d5be93f1e9035fe674d71"],"secs":18,"stamp":"d42f3b9a75dbf98f3bbd6ff79b10bdfe","tree":"02cb9685257022b9ae2fb691c6a9dcab566b35f4","v":1,"via":"run"}
Ci-Attestation: {"at":1791675536,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"ae5384414c1789bc15860169a92f72905fb4658964879237f045919954932409","lane":"rust-test","parents":["de786897f541d062362d5be93f1e9035fe674d71"],"secs":37,"stamp":"a4651970ad4e7ea6f922024391c8ad2b","tree":"02cb9685257022b9ae2fb691c6a9dcab566b35f4","v":1,"via":"run"}
Ci-Attestation: {"at":1791675536,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"5e736b303893afef31ab0585ac7a2cd9517e02673ff0bf67107ebb00cf8fa599","lane":"tier2-linux","parents":["de786897f541d062362d5be93f1e9035fe674d71"],"secs":46,"stamp":"56df2aea00ab8f5ffbbae12a5f21d146","tree":"02cb9685257022b9ae2fb691c6a9dcab566b35f4","v":1,"via":"run"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Pin the Rust toolchain and declare an MSRV

1 participant