rustup icon indicating copy to clipboard operation
rustup copied to clipboard

rustfmt takes too long to install

Open KnotUntied opened this issue 6 months ago • 1 comments

Verification

  • [x] I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
  • [x] 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

KnotUntied avatar Apr 04 '25 12:04 KnotUntied