diff --git a/.github/workflows/rustmsrv.yml b/.github/workflows/rustmsrv.yml new file mode 100644 index 00000000..5be0ab23 --- /dev/null +++ b/.github/workflows/rustmsrv.yml @@ -0,0 +1,26 @@ +# Check that minimum Rust supported version compiles this project +name: MSRV check + +on: + pull_request: + paths: + - '**.rs' + - Cargo.toml + workflow_dispatch: + +jobs: + msrv_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install Cargo MSRV + kuses: taiki-e/install-action@v2 + with: + tool: cargo-msrv + + - name: Check MSRV + run: cargo msrv verify -- cargo check --all-features diff --git a/Cargo.toml b/Cargo.toml index d2e72224..11062686 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ name = "differt" [package] edition = "2021" name = "_core" +rust-version = "1.63.0" version = "0.0.6" [profile.bench]