From 4f59e256529024eeafd4d7dcae495603f8e40a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B6=BE=E7=80=AC=E6=A1=83=E6=A1=83?= Date: Thu, 10 Sep 2026 09:28:50 +0800 Subject: [PATCH] ci: declare rustfmt/clippy components in rust-toolchain.toml The 1.98.1 pin installs without rustfmt and clippy, so the fmt and clippy jobs fail at the shim before running. Listing the components in the toolchain file makes rustup auto-install them on every host, including the CI runners that invoke cargo with no setup action. --- rust-toolchain.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index c08f3dd..6618266 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,7 @@ [toolchain] channel = "1.98.1" +# CI invokes rustfmt/clippy through the rustup shim with no setup action, so +# the pinned toolchain must declare its components here — the runner images +# only preinstall them for their default toolchain. +components = ["rustfmt", "clippy"] targets = ["x86_64-pc-windows-msvc", "wasm32-unknown-unknown"]