From 5848ff57355a8cc488306c94dbf2a2b70d4418b3 Mon Sep 17 00:00:00 2001 From: Skgland Date: Sat, 12 Mar 2022 18:57:33 +0100 Subject: [PATCH 1/2] add min rust version was proposed in https://github.com/mthom/scryer-prolog/issues/1335#issuecomment-1062039516 and got positive feedback (cherry picked from commit fcfa3beaa32f23f6c08fcc7d4f3755b10bc62431) --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 193d6ce6..b9d8466d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ license = "BSD-3-Clause" keywords = ["prolog", "prolog-interpreter", "prolog-system"] categories = ["command-line-utilities"] build = "build.rs" +rust-version = "1.57" [workspace] members = ["crates/num-rug-adapter", @@ -72,4 +73,4 @@ predicates-core = "1.0.2" serial_test = "0.5.1" [profile.release] -debug = true \ No newline at end of file +debug = true From 45db236ec716c672415270debaaf621872e998b5 Mon Sep 17 00:00:00 2001 From: Skgland Date: Sat, 12 Mar 2022 19:02:34 +0100 Subject: [PATCH 2/2] add a CI job to verify msrv is still correct --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddb8e61d..db4801c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,3 +38,17 @@ jobs: with: command: test args: --verbose --all --no-default-features --features num + msrv: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, macos-10.15] + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install cargo-msrv + uses: baptiste0928/cargo-install@v1.1.0 + with: + crate: cargo-msrv + - name: Verify MSRV + run: cargo msrv --verify