From 5889678993a9001ff04e36a34ff0ac5159bd26af Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Sun, 17 Dec 2023 10:19:18 -0500 Subject: [PATCH 1/2] add min Rust version Cargo.toml configuration based on testing with cargo msrv --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index b88f4c2..db933a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ TODO documentation = "https://github.com/chrissimpkins/size" homepage = "https://github.com/chrissimpkins/size" repository = "https://github.com/chrissimpkins/size" +rust-version = "1.70.0" [[bin]] name = "siz" From 9f6bfaee0011606ffbc9c5cb7b535bfad7d0f371 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Sun, 17 Dec 2023 10:30:22 -0500 Subject: [PATCH 2/2] (ci) add MSRV check uses cargo-msrv crate --- .github/workflows/msrv.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/msrv.yml diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml new file mode 100644 index 0000000..5fd392e --- /dev/null +++ b/.github/workflows/msrv.yml @@ -0,0 +1,20 @@ +name: Min Supported Rust Version + +on: + push: + branches: main + pull_request: + +jobs: + msrv: + runs-on: ubuntu-latest + name: MSRV + steps: + - name: Check out source repository + uses: actions/checkout@v4 + - name: Install the latest stable Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Install cargo msrv + run: cargo install cargo-msrv + - name: Verify MSRV + run: cargo msrv verify