Skip to content

Rust for Windows recommends installing a tool (Visual Studio Build Tools) that needs a licence #1597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonathanpallant opened this issue Oct 13, 2021 · 3 comments · Fixed by #1667
Labels
A-Content The written content on the website. C-Bug Something isn't working.

Comments

@jonathanpallant
Copy link

What needs to be fixed?

On https://rust-lang.github.io/rustup/installation/windows.html it says

When targeting the MSVC ABI, Rust additionally requires an installation of Visual Studio 2013 (or later) or the Visual C++ Build Tools 2019 so rustc can use its linker. For Visual Studio, make sure to check the "C++ tools" and "Windows 10 SDK" option. No additional software installation is necessary for basic use of the GNU build.

It appears that a Visual Studio (Community, Professional or Enterprise) licence is now required to use the Visual Studio Build Tools, and we should either advise people of the fact or recommend an alternative. See this text on https://visualstudio.microsoft.com/downloads/#remote-tools-for-visual-studio-2019

These Build Tools allow you to build Visual Studio projects from a command-line interface. Supported projects include: ASP.NET, Azure, C++ desktop, ClickOnce, containers, .NET Core, .NET Desktop, Node.js, Office and SharePoint, Python, TypeScript, Unit Tests, UWP, WCF, and Xamarin. Use of this tool requires a valid Visual Studio license.

(my emphasis)

See this issue on VS Code where their C++ plugin was doing the same: microsoft/vscode#95745

Page(s) Affected

https://rust-lang.github.io/rustup/installation/windows.html and anywhere else it talks about the "Visual Studio Build Tools" or "Visual C++ Build Tools".

Suggested Improvement

  1. Tell people they need a Visual Studio licence to use the Visual Studio Build Tools, and/or
  2. Suggest people install an alternative Microsoft Visual C++ compatible C++ compiler
@jonathanpallant jonathanpallant added A-Content The written content on the website. C-Bug Something isn't working. labels Oct 13, 2021
@Manishearth
Copy link
Member

Please file this on https://github.com/rust-lang/rustup

@jonathanpallant
Copy link
Author

Will do, but FYI it also applies to https://www.rust-lang.org/tools/install.

@Manishearth
Copy link
Member

Ah, reopened for that bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Content The written content on the website. C-Bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants