Repository navigation
Conversation
added 2 commits
November 25, 2026 22:25
Download the VS 2026 Build Tools bootstrapper instead of Visual Studio Community, add only the MSVC tools component for the host architecture, offer the automatic install on aarch64 hosts too, and note the Visual Studio license requirement in the prompt.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This shifts to build tools instead of VS Community and detects Arm64 properly and make the init tool 'just work'. This will allow someone who already has VS installed to have init continue to work.
Closes #5265
Installed size, from Microsoft's VS package manifests (required packages only):
Changes in
src/cli/self_update/windows.rs:https://aka.ms/vs/18/stable/vs_buildtools.exe) instead of VS 2022 Community.VC.Tools.x86.x64on x86_64/i686,VC.Tools.ARM64on aarch64. SDK 26100 (skipped if SDK libs are found) and the English pack are unchanged.-ybehavior unchanged.--wait,--addand--addProductLangare in Microsoft's command-line parameter docs; all three component IDs are in the VS 2026 Build Tools list.--focusedUiisn't publicly documented, same as before with Community; kept as-is.Testing
On an ARM64 Windows 11 machine, native
aarch64-pc-windows-msvc:cargo test --lib --features test -- self_update::windows::tests: 14 passed, including 2 new tests for host-arch component selection and the aarch64 automatic plancargo fmt --check: passedcargo clippy --lib --tests --features test: no warningscargo build --release --bin rustup-init: passedOnce this merges, the "Installing with rustup-init" section of
windows-msvc.md(#5264) needs updating: say it installs Build Tools with the tools for your architecture, and drop "on ARM64" from the cases where it isn't offered.