Skip to content

Commit

Permalink
test: enable clippy check only with stable toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Nov 28, 2024
1 parent 2340ed8 commit 963c3f9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 963c3f9

Please sign in to comment.