Repository navigation
rust: Pin the toolchain to 1.99.0 and declare MSRV - #164
Merged
Merged
Conversation
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"}
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #136
rust-toolchain.tomlusedchannel = "stable", so every new Rust release could changeclippy -D warningsresults 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 MSRVNew
ci/test_toolchain.pychecks that:X.Y.Z;[workspace.package]declaresrust-version, no newer than the channel;rust/*crate hasrust-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.99channel = "1.99.0", the stable release CI'ssetup-soldralready resolves.rust-version = "1.99", inherited by every crate.Evidence
python3 -m unittest ci/test_toolchain.py: OK.cargo metadata --locked: OK.rust-toolchain.tomlis a trust surface inlocal-gate.toml, so CI runs the full Rust and Tier 2 jobs on all three OSes.