From 3bf76360f9a4b5769634ae394cecaa7977da952b Mon Sep 17 00:00:00 2001 From: floor-licker Date: Fri, 5 Dec 2025 19:14:19 -0500 Subject: [PATCH] fix: add rustfmt and clippy components to all Rust toolchain installations in CI to resolve 'cargo-fmt is not installed' error for Rust 1.76 toolchain --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9c3330..7cfb712 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: with: toolchain: ${{ matrix.rust }} targets: ${{ matrix.target }} + components: rustfmt, clippy - name: Cache dependencies uses: actions/cache@v4 @@ -76,8 +77,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Cache dependencies uses: actions/cache@v4 @@ -105,8 +105,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Install cargo-audit run: cargo install cargo-audit @@ -125,8 +124,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Build documentation run: cargo doc --no-deps --all-features @@ -145,8 +143,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Build examples run: cargo build --examples --all-features @@ -166,8 +163,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Install system dependencies for cargo-spellcheck run: | @@ -214,8 +210,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - profile: minimal + components: rustfmt, clippy - name: Build for release run: cargo build --release --all-features