Skip to content

rustfmt takes too long to install #4278

Open
@KnotUntied

Description

@KnotUntied

Verification

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions