From 590d83c2afa3cac616b2909e2ad981c5cd31b80f Mon Sep 17 00:00:00 2001 From: DJ Date: Mon, 30 Mar 2026 19:48:20 -0700 Subject: [PATCH] ci: add MSRV verification for Rust 1.85 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) --- .github/workflows/ci.yml | 16 ++++++++++++++++ Cargo.toml | 1 + 2 files changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc8c481..65b1cd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,3 +37,19 @@ jobs: - name: Run cargo test run: cargo test --locked + + msrv: + name: MSRV Check + runs-on: ubuntu-24.04 + steps: + - name: Check out repository + uses: actions/checkout@v5 + + - name: Install minimum supported Rust version + uses: dtolnay/rust-toolchain@1.85 + + - name: Restore Cargo cache + uses: Swatinem/rust-cache@v2 + + - name: Run cargo check + run: cargo check --locked --all-targets diff --git a/Cargo.toml b/Cargo.toml index 8105ee7..b72918f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ name = "dagger" version = "0.2.0" edition = "2024" license = "GPL-3.0-or-later" +rust-version = "1.85" [[bin]] name = "dgr"