Win11 min MSVC prerequisites rustup handbook not enough to make rustup-init.exe detect MSVC
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Inizia dalla pagina dei prerequisiti Windows MSVC del rustup handbook e dall’entry point di rilevamento MSVC di rustup-init.exe. Riproduci il malfunzionamento usando solo i componenti Visual Studio elencati, quindi determina se il handbook o il comportamento di rilevamento è errato; il lavoro è completo quando i requisiti minimi sono accurati e le indicazioni risultanti sono verificate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue 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
On this page of the rustup handbook, there is a description of the minimum requirements necessary to make rustup-init.exe not complain about a missing MSVC installation. Quoting the manual, the minimal requirements are as follows:
- MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
- Windows 11 SDK (10.0.22621.0)
I already had an installation of Visual Studio Community 2022, that came with the installation of Unity3D, so I opted to modify it in the installer. In the modification, I chose those the exact two packages as above. However, after the installation was complete, I was still greeted by the following message when starting rustup-init.exe:
Rust requires the Microsoft C++ build tools for Visual Studio 2017 or later, but they don't seem to be installed.
I tried installing several other components, among which the Universal C Runtime, all without result. The only thing that worked, was exactly what I was trying to prevent: installing the "Desktop development with C++" workload, which installs a whole bunch of stuff that I don't need and therefore wastes several GBs and some time.
Steps
- Install Visual Studio Community 2022 (just to be sure, via a Unity3D installation)
- After it is done, modify the installation via the Visual Studio Installer to include the minimal individual components as indicated here, which are:
MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest),Windows 11 SDK (10.0.22621.0) - Download and run
rustup-init.exe. It will tell you:Rust requires the Microsoft C++ build tools for Visual Studio 2017 or later, but they don't seem to be installed. - Now go back to the Visual Studio Installer, modify the installation, and select the "Desktop development with C++" workload, then commence.
- When the installer is done, start
rustup-init.exeagain. It will no longer complain about missing build tools.
Possible Solution(s)
If reproducible by others, it would be nice if this suggestion of the manual was either removed due to incorrectness, or updated with the actual minimal set of components and actions necessary to make rustup-init.exe detect the tools that it needs, to prevent future time wasting. Furthermore, it would be nice to be able to more easily find how exactly rustup-init.exe goes about detecting these tools, as this information has been exceedingly hard to find and would help a lot with troubleshooting installation issues - perhaps this could be included in the handbook?
Notes
I also tried to install 2017 versions of the toolchain as the message suggests (so MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16)), same result.
Rustup version
rustup-init 1.28.2 (e4f3ad6f8 2025-04-28)
Installed toolchains
MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest), Windows 11 SDK (10.0.22621.0)
OS version
Windows 11 (10.0.26200 Build 26200)
- Lingua principale
- Rust
- Stelle
- 7.1k
- Fork
- 1.1k
- Merge medio
- 1g 10h
- PR unite (30g)
- 42
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rust-lang/rustup
-
enhancement O-shell
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
I maintainer di solito rispondono entro 1 giorno
-
rust-analyzer fallback recurses through Homebrew’s wrapperForse già presa @rami3l l’ha presa 5 giorni fa. Apertaenhancement O-macos
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
rust-lang/rustup#5133 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Verbose output for removing components on toolchain updateForse già presa @rami3l l’ha presa 12 giorni fa. Apertaenhancement
rust-lang/rustup#5122 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Continuous performance tracking to avoid major regressionsForse già presa @rami3l l’ha presa 20 giorni fa. Apertameta
rust-lang/rustup#5103 · 3 commenti · 5 reazioni · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rust-lang/rustup
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wormhole-foundation/wormhole#5062 ·
I maintainer di solito rispondono entro 1 giorno
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an errorForse già presa @bhuvan-somisetty l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
crate: spate-s3
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno