Skip to content

docs(windows-msvc): rework MSVC prerequisites guide - #5266

Closed
crutkas wants to merge 3 commits into
rust-lang:mainfrom
crutkas:crutkas-rust-msvc-prerequisites-docs
Closed

crutkas wants to merge 3 commits into
rust-lang:mainfrom
crutkas:crutkas-rust-msvc-prerequisites-docs

Conversation

@crutkas

@crutkas crutkas commented Nov 26, 2026 •

Copy link
Copy Markdown

This is adjusts the body to shift to Build tools. and an attempt to simplify language. With #5267, this should be a lot easier language too as everything moves to a easier path.

Closes #5264

Area Issue PR
Website install and Get Started pages rust-lang/www.rust-lang.org#2361 rust-lang/www.rust-lang.org#2362
rustup MSVC guide and other installation methods #5264 this PR
rustup-init automatic install #5265 #5267
Forge other installation methods rust-lang/rust-forge#1162 rust-lang/rust-forge#1163

Before / after

Before After
MSVC guide before MSVC guide after

Details

Rewrites the Windows MSVC prerequisites page to be short and lead with one WinGet install.

  • Top of page: a two-line winget block that installs Build Tools (x64/x86 and ARM64 MSVC tools, Windows 11 SDK 26100, English language pack), then Rustlang.Rustup. --interactive opens the Visual Studio Installer for review. Works in PowerShell and Command Prompt. WinGet waits for Build Tools before the second line, because the manifest's --wait is kept and --custom adds to it.
  • "What the command installs": a component table with why Rust needs each one, plus notes on dropping an architecture, the SDK version, VS 2022 vs 2026 package IDs, and that Rustlang.Rust.MSVC installs Rust, not the prerequisites.
  • Licensing: MSVC build tools need a Visual Studio license, Community is free for individuals, open-source projects and small teams, with a link to the VS 2026 Build Tools license terms.
  • Existing Visual Studio: modify it with the Visual Studio Installer, since WinGet won't add components.
  • rustup-init automatic install described as it behaves today: VS 2022 Community, x64/x86 only, and skipped on ARM64, when VS is already installed, or with -y.
  • Manual install trimmed to one paragraph plus the existing screenshots.
  • Troubleshooting for a missing linker, missing kernel32.lib (with a Microsoft.WindowsSDK.10.0.26100 fallback), and Git's link.exe on PATH.
  • other.md: new WinGet subsection under "Using a package manager" with the same two lines. The Rustlang.Rustup manifest runs rustup-init -y, so the prerequisites go first.
  • windows.md: one sentence now says MSVC build tools and a Windows SDK instead of "an installation of Visual Studio".

Validation:

  • mdbook build doc/user-guide (mdbook 0.5.2, same as CI): passed, and in-page anchors resolve.
  • The Build Tools command wasn't run end to end.

Clint Rutkas added 2 commits November 25, 2026 22:15
Start the MSVC prerequisites guide with a WinGet command that installs the x64/x86 and ARM64 MSVC build tools, the Windows 11 SDK and the English language pack, then rustup. Explain what each component is for, describe the rustup-init automatic install as it behaves today, shorten licensing and manual install, and add troubleshooting for common linker and SDK errors.
List WinGet under package managers with the same Build Tools and Rustlang.Rustup commands as the MSVC guide. The Rustlang.Rustup package runs rustup-init -y, so the prerequisites go first.
@rustbot

rustbot commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Welcome, and thank you for contributing to rustup! A reviewer will take a look at your PR, typically within a week or two.

Please see the contribution instructions and our LLM policy for more information.

Added instructions for manually installing the Windows SDK using WinGet if it's missing after running the initial command.
@rami3l rami3l closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MSVC prerequisites guide is long and misses the common Windows setups

3 participants