rust-lang / rust-lang/rustup

Rustup Visual Studio Community installer packages wrong SDK version on Windows 10

Open
#4,035 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Verification
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.