Skip to content

ci: add MSRV verification for Rust 1.85#26

Open
don-petry wants to merge 1 commit intooneirosoft:mainfrom
don-petry:ci/msrv-check
Open

ci: add MSRV verification for Rust 1.85#26
don-petry wants to merge 1 commit intooneirosoft:mainfrom
don-petry:ci/msrv-check

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

@don-petry don-petry commented Mar 31, 2026

Why?

Without an explicit MSRV (minimum supported Rust version), contributors can unknowingly use newer language features that break the build for users on older toolchains. Declaring and testing the MSRV in CI catches these regressions before they're merged.

Summary

  • Add rust-version = "1.85" to Cargo.toml to declare the minimum supported Rust version
  • Add a dedicated msrv job to the CI workflow that runs cargo check with Rust 1.85
  • Ensures future changes don't accidentally require a newer Rust version

Addresses item 4 in #11.

Test plan

  • CI msrv job passes with Rust 1.85
  • Existing verify job remains unaffected

🤖 Generated with Claude Code

Add rust-version = "1.85" to Cargo.toml and a dedicated MSRV check job
in the CI workflow to ensure we don't accidentally raise the minimum
supported Rust version.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 31, 2026 02:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an explicit Minimum Supported Rust Version (MSRV) to the project and enforces it in CI to prevent accidental adoption of newer Rust features than intended.

Changes:

  • Declare rust-version = "1.85" in Cargo.toml.
  • Add an msrv CI job that runs cargo check --locked --all-targets using Rust 1.85.
  • Keep the existing verify job unchanged (still runs fmt/check/test on stable).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Cargo.toml Declares MSRV (rust-version = "1.85") in the package manifest.
.github/workflows/ci.yml Adds a dedicated MSRV job pinned to Rust 1.85 running cargo check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants