Skip to content

Commit a23222e

Browse files
committed
Tooling: declare rustfmt + clippy as required toolchain components
Pinning `apps/desktop/rust-toolchain.toml` to a specific channel without a `components` line tells rustup to install only the minimal profile (rustc + cargo + rust-std). CI scripts then invoke `cargo fmt --check` and `cargo clippy` and trip on missing components — every Rust job on a fresh runner has been failing at the rustfmt step since the channel pin landed. Add `components = ["rustfmt", "clippy"]` so the runner installs them automatically alongside the pinned channel. Devs with local rustup configs that already include rustfmt are unaffected (rustup honours the declaration whether the components are already present or not).
1 parent 7d771ca commit a23222e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/desktop/rust-toolchain.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
# A compromised rustc release would land transparently otherwise. Bump
44
# deliberately, with a few days between Rust's release and our pin update.
55
channel = "1.95.0"
6+
# rustup installs only the minimal profile for a pinned channel by default
7+
# (rustc + cargo + rust-std). CI invokes `cargo fmt` and `cargo clippy`, both
8+
# of which need their respective components installed. Declare them here so
9+
# the runner picks them up automatically — without this, every CI Rust job
10+
# fails at the rustfmt step.
11+
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)