From 963c3f9a6a4d278858182588bfedf36e6b3ddc00 Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Thu, 28 Nov 2024 22:27:29 +0800 Subject: [PATCH] test: enable clippy check only with stable toolchain Signed-off-by: MrCroxx --- .github/workflows/ci.yml | 5 +++-- Cargo.toml | 2 +- Makefile | 16 ++++++++-------- README.md | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af66656a..1f3466a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,7 +122,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - rust_toolchain: [stable, 1.82.0] + rust_toolchain: [stable, 1.81.0] runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -160,7 +160,8 @@ jobs: - name: Run rust format check run: | cargo fmt --all -- --check - - name: Run rust clippy check + - name: Run rust clippy check (stable) + if: matrix.rust_toolchain == 'stable' run: | cargo clippy --all-targets --features tokio-console -- -D warnings cargo clippy --all-targets --features deadlock -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index fe308b1a..a3dabdb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ [workspace.package] version = "0.13.0-dev" edition = "2021" -rust-version = "1.82.0" +rust-version = "1.81.0" repository = "https://github.com/foyer-rs/foyer" homepage = "https://foyer.rs" keywords = ["cache", "hybrid"] diff --git a/Makefile b/Makefile index a69d175d..c2a2777b 100644 --- a/Makefile +++ b/Makefile @@ -54,14 +54,14 @@ fast: check test example msrv: shellcheck ./scripts/* ./scripts/minimize-dashboards.sh - cargo +1.82.0 sort -w - cargo +1.82.0 fmt --all - cargo +1.82.0 clippy --all-targets --features deadlock - cargo +1.82.0 clippy --all-targets --features tokio-console - cargo +1.82.0 clippy --all-targets - RUST_BACKTRACE=1 cargo +1.82.0 nextest run --all - RUST_BACKTRACE=1 cargo +1.82.0 test --doc - RUST_BACKTRACE=1 cargo +1.82.0 nextest run --run-ignored ignored-only --no-capture --workspace + cargo +1.81.0 sort -w + cargo +1.81.0 fmt --all + cargo +1.81.0 clippy --all-targets --features deadlock + cargo +1.81.0 clippy --all-targets --features tokio-console + cargo +1.81.0 clippy --all-targets + RUST_BACKTRACE=1 cargo +1.81.0 nextest run --all + RUST_BACKTRACE=1 cargo +1.81.0 test --doc + RUST_BACKTRACE=1 cargo +1.81.0 nextest run --run-ignored ignored-only --no-capture --workspace udeps: RUSTFLAGS="--cfg tokio_unstable -Awarnings" cargo +nightly-2024-08-30 udeps --all-targets diff --git a/README.md b/README.md index 34d8b065..5d9cbabd 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,7 @@ More examples and details can be found [here](https://github.com/foyer-rs/foyer/ ## Supported Rust Versions -*foyer* is built against the recent stable release. The minimum supported version is 1.82.0. The current *foyer* version is not guaranteed to build on Rust versions earlier than the minimum supported version. +*foyer* is built against the recent stable release. The minimum supported version is 1.81.0. The current *foyer* version is not guaranteed to build on Rust versions earlier than the minimum supported version. ## Supported Platforms