-
Notifications
You must be signed in to change notification settings - Fork 893
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
Rust for Windows recommends installing a tool (Visual Studio Build Tools) that needs a licence #2867
Comments
This is certainly a worrying situation for our users to be in. Do you have a recommended alternative toolchain which works with the msvc compliant rust toolchain? |
No, I do not. |
No change in 2022 either, sadly. https://twitter.com/therealjpster/status/1457979783925669888 |
Might it be possible to enable Rust to use the native Windows |
For the linker specifically, that is being tracked here: rust-lang/rust#71520 However, even if/when we switch linker we'd still need some other parts from somewhere:
It is possible that the vcruntime will be made available with an open source license but that's a way off if it happens. If it does then that would make things much simpler. In the meantime, my "vote" here is for improving the wording/recommendation and perhaps link to the Visual Studio License Directory. If anyone wants to make a PR then I think that would be helpful. I'd be more than happy to help out with reviewing. |
Do i understand this correctly. If so that feels like a huge thing that should be warned about, cause at least i have only focused on the licenses of crates and never thought the toolchain mattered in that regard. Sorry for just asking a question and not providing any valuable feedback. |
You do need a Visual Studio license, but the free "Visual Studio Community" license is suitable for commercial use as long as you have no more than 5 users. Only enterprises or organizations with more than 5 users require a paid license:
This information is from: https://visualstudio.microsoft.com/vs/compare/ If you have more than 5 users, or meet one of those criteria, then I daresay getting a professional VS license is not going to be a problem. |
@Diggsey Thanks for clarifying, was basically what i was worried about. I am hoping Rust can become independent from this some day so one doesn't have to think about it and just develop in Rust on whatever platform it supports (a big thanks Rust for pushing the boundaries of what a programming language can do). |
@Diggsey, that is good to know, thanks. But I believe you still cannot use the MS Visual Studio Build Tools except to build software you are developing with Visual Studio (even if you can get Visual Studio Community free of charge).
https://visualstudio.microsoft.com/license-terms/mlt031519/ What constitutes "developed by using [Visual Studio Community]"? I don't know! Of course this is all theoretical. I don't imagine that Microsoft, Rust Foundation Members, would actually prosecute people for using the 'free' Microsoft Build Tools to develop Rust applications. But I believe the point remains that blindly pointing people to install commercial software with these kinds of terms is problematic, and that at least some words to encourage users to validate the legality of their use of that software would seen prudent. I'm also hopeful that someone from the Core Team or from the Foundation can have a conversation with Microsoft about this issue. |
Well stated! |
I don't disagree with your comment, but
"the software" means the build tools themselves, not Visual Studio in general, as stated at the top of the license. IMO, if you are using the the build tools with Rust in the usual way, then you are using "the software" to compile/build your application, and so the use is explicitly allowed. (Also those appear to be the 2019 terms) |
I have been looking in to this for awhile and will be attempting to improve Rust's messaging here. Sorry I've been delayed in doing this. Some scattered notes:
|
This part doesn't follow to me. Installing the software implies agreeing to the license, but it's not the only way to agree to the license... you can just agree. If the build tools are a supplementary license then you agree to both licenses by installing the build tools, there's no need to separately install VS community. |
Unfortunately it does not work this way. I did ask for clarity on this issue and the response was:
|
That makes things quite peculiar as i would guess it's quite common to use the Build Tools without having Visual Studio. Feels like it was meant to supplementary from the start, but then things changed but the license was never updated? |
Yeah that's really bizarre, and would defeat the entire point of having a separate build tools download.
Out of curiousity, who did you ask? And if it was somewhere public, do you have a link to this discussion? |
It was not a public conversation. Awhile ago I asked Nell Shamrell-Harrington (Microsoft's Rust Foundation board member) who enquired internally. I had meant to do a write up at the time but am I only just getting back to this issue. I think the build tools were originally intended for build servers, etc. |
What needs to be fixed?
On https://rust-lang.github.io/rustup/installation/windows.html it says
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
(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
(Duplicated from rust-lang/www.rust-lang.org#1597 as requested).
The text was updated successfully, but these errors were encountered: