Rustup Visual Studio Community installer packages wrong SDK version on Windows 10
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
When running the rustup installer before installing C++ build tools dependencies on Windows 10, the Visual Studio Community installer only contains the SDK for Windows 11 and fails to install.
Steps
Launch rustup-init.exe on Windows 10 without necessary C++ build tools, try to install them through the provided Visual Studio Community installer.
Possible Solution(s)
Check windows version when running rustup-init.exe, provide different Visual Studio Community installers for Win10 and Win11.
Notes
I have also heard the opposite issue from some Win11 users on reddit - possible the check is already in place but the installer versions were flipped by mistake?
Rustup version
1.27.1
Installed toolchains
stable-x86_64-pc-windows-msvc (default)
rustc 1.81.0 (eeb90cda1 2024-09-04)
OS version
Windows 10 Pro (10.0.19405)
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 the failure with rustup-init.exe on Windows 10 without the C++ build tools, then inspect how it selects the Visual Studio Community installer. Verify the selected installer provides the Windows 10 SDK, and check the reported opposite behavior on Windows 11 before considering the issue done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100