From 6e5dcbfc915cf0cd140641e1546be6dea679d3ad Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 19 Sep 2023 16:09:44 +0100 Subject: [PATCH] Document and test bumped MSRV. --- .github/workflows/ci.yml | 27 +++++++++++---------------- Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45e399a0d..c412fc835 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,9 @@ on: jobs: check: - name: check runs-on: ubuntu-latest strategy: matrix: - build: [msrv, stable] features: [ "", @@ -21,24 +19,22 @@ jobs: "--no-default-features --features use_alloc", "--all-targets --all-features", ] - include: - - build: msrv - rust: 1.62.1 - - build: stable - rust: stable - exclude: - - build: msrv - # we only care about the MSRV with respect to the lib target - features: "--all-targets --all-features" steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} + - uses: dtolnay/rust-toolchain@stable - run: cargo check ${{ matrix.features }} + msrv: + runs-on: ubuntu-latest + env: + CARGO_NET_GIT_FETCH_WITH_CLI: true + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/install-action@cargo-no-dev-deps + - uses: dtolnay/rust-toolchain@1.43.1 + - run: cargo no-dev-deps check + test: - name: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -62,7 +58,6 @@ jobs: if: success() runs-on: ubuntu-latest needs: [check, test] - steps: - name: Mark the job as successful run: exit 0 diff --git a/Cargo.toml b/Cargo.toml index a6dfefbf6..2a023a1f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ exclude = ["/bors.toml"] edition = "2018" -rust-version = "1.36.0" +rust-version = "1.43.1" [lib] bench = false diff --git a/src/lib.rs b/src/lib.rs index 7dc40370b..f51a9a993 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ //! //! ## Rust Version //! -//! This version of itertools requires Rust 1.36 or later. +//! This version of itertools requires Rust 1.43.1 or later. #![doc(html_root_url = "https://docs.rs/itertools/0.11/")] #[cfg(not(feature = "use_std"))]