diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index cce3d952a..67aaee320 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -15,7 +15,10 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: submodules: recursive - - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # 1.0-fcf085f + - uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # 1.0-6d653ac + with: + toolchain: stable + components: clippy, rustfmt - uses: taiki-e/install-action@a092537a3547af99875d9fdf67ec85c08738a2f9 # biome-a092537 - uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0 with: @@ -47,9 +50,11 @@ jobs: with: submodules: recursive - - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # 1.0-fcf085f + - uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # 1.0-6d653ac with: + toolchain: stable target: ${{ matrix.target }} + components: clippy, rustfmt - uses: taiki-e/setup-cross-toolchain-action@5084abba9e77b5db42d44a1420a56e7c1c7c8433 # v1.31.1 with: @@ -74,7 +79,10 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: submodules: recursive - - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # 1.0-fcf085f + - uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # 1.0-6d653ac + with: + toolchain: stable + components: clippy, rustfmt - run: cargo clippy --workspace --all-targets --all-features env: RUSTFLAGS: -Dwarnings @@ -85,7 +93,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # 1.0-fcf085f + - uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # 1.0-6d653ac with: + toolchain: stable components: rustfmt - run: cargo fmt --all --check diff --git a/bindings/rust/rust-toolchain b/bindings/rust/rust-toolchain index 292fe499e..73cb934de 100644 --- a/bindings/rust/rust-toolchain +++ b/bindings/rust/rust-toolchain @@ -1,2 +1,3 @@ [toolchain] channel = "stable" +components = ["rustfmt", "clippy"]