Skip to content

Tooling: declare rustfmt + clippy as required toolchain components#22

Merged
vdavid merged 2 commits into
mainfrom
fix/rust-toolchain-components
May 18, 2026
Merged

Tooling: declare rustfmt + clippy as required toolchain components#22
vdavid merged 2 commits into
mainfrom
fix/rust-toolchain-components

Conversation

@vdavid
Copy link
Copy Markdown
Owner

@vdavid vdavid commented May 18, 2026

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). Every Rust CI job since the pin landed (commit `7d771ca8`) fails at the rustfmt step because rustfmt isn't installed.

  • Adds `components = ["rustfmt", "clippy"]` so the runner installs them alongside the pinned channel.
  • Devs with local rustup configs that already have rustfmt installed are unaffected.

Blocks #18 and #21 from going CI-green; should land first.

Test plan

  • `cargo fmt --check` + `cargo clippy -- -D warnings` succeed locally on a runner with only the minimal profile (verified by re-running the failing PR after merge).

vdavid added 2 commits May 18, 2026 22:04
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).
The `rust` paths-filter only watched `apps/desktop/src-tauri/**`, so
edits to `apps/desktop/rust-toolchain.toml` skipped the Rust CI jobs
entirely. The toolchain file shapes every Rust build on every runner;
not running the Rust suite when it changes is exactly backwards.
Add the toolchain file to the rust filter so PRs that touch it
actually exercise the jobs they affect.
@vdavid vdavid merged commit 0f8c9ff into main May 18, 2026
7 of 8 checks passed
@vdavid vdavid deleted the fix/rust-toolchain-components branch May 19, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant