rustfmt takes too long to install
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Whenever I update my toolchain using rustup update, rustfmt seems to take an abnormally long time to install, i.e., info: installing component 'rustfmt' takes several minutes. Listed below are for the most recent instance.
Steps
Either run rustup component add rustfmt or rustup update while rustfmt is installed in the latter case.
Possible Solution(s)
No response
Notes
I've seen a similar anecdote on Discord, albeit on macOS, which suspected Microsoft Defender as the culprit but I'm not sure on this one.
Rustup version
rustup 1.28.1 (f9edccde0 2025-03-05)
Installed toolchains
Default host: x86_64-pc-windows-msvc
rustup home: D:\scoop\persist\rustup-msvc\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc (active, default)
active toolchain
----------------
name: stable-x86_64-pc-windows-msvc
active because: it's the default toolchain
installed targets:
x86_64-pc-windows-gnu
x86_64-pc-windows-msvc
OS version
Windows 10 22H2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing rustup component add rustfmt and rustup update on Windows 10 22H2 with rustup 1.28.1 and the listed toolchains, timing the rustfmt installation. Compare the behavior across the GNU and MSVC toolchains and investigate the installation path; done means identifying a reproducible cause and a verified resolution for the delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100