From 94b71f0fdf73012d500c27645b539211ad7965d2 Mon Sep 17 00:00:00 2001 From: Shiva Kiran Koninty Date: Sun, 23 Aug 2026 18:40:27 +0530 Subject: [PATCH 1/2] Add Minimum Supported Rust Version (MSRV) --- .github/workflows/ci.yml | 8 ++++++++ Cargo.toml | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8edef4c..d6f6b95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,11 @@ jobs: run: cargo fmt -- --check - name: Lint run: cargo clippy --all-features --all-targets -- -D warnings + + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: Swatinem/rust-cache@v2 + - run: cargo install cargo-msrv + - run: cargo msrv verify diff --git a/Cargo.toml b/Cargo.toml index a38e304..c0ba173 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ repository = "https://github.com/libcdio/libcdio-rs" license = "GPL-3.0-or-later" keywords = ["cd", "scsi", "iso9660", "udf"] categories = ["api-bindings", "multimedia::audio", "filesystem", "hardware-support"] +rust-version = "1.90.0" [features] iso9660 = ["libcdio-sys/iso9660", "dep:file-mode", "dep:time"] From 5b44be90122ac9040eedf252e29b0df5b70fdd58 Mon Sep 17 00:00:00 2001 From: Shiva Kiran Koninty Date: Sun, 23 Aug 2026 18:41:05 +0530 Subject: [PATCH 2/2] ci: Split off lint into a separate job from test The test job runs on multiple OSes. The lint and format jobs do not need that, so split them off into a separate job that runs just on ubuntu. --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6f6b95..fd9329c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ env: CARGO_TERM_COLOR: always jobs: - ci: + test: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] @@ -17,10 +17,13 @@ jobs: steps: - uses: actions/checkout@v7 - uses: Swatinem/rust-cache@v2 - - name: Build - run: cargo build --all-features - - name: Test - run: cargo test --all-features + - run: cargo test --all-features + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: Swatinem/rust-cache@v2 - name: Format run: cargo fmt -- --check - name: Lint