

Therefore, I removed all VS 2017 related programs and re-install Visual C++ 2015 Build Tools with the DEFAULT settings for my Rust HelloWorld program. Rustup still requires VC++ 2015 toolset, Universal CRT SDK & Windows 8.1 SDK to recognize the build tools. Here is the required components to install Visual C++ via Visual Studio for Rust HelloWorld program: Again, I have tested VS 2017 installer by adding more components related to C++ development, also try to strip as much as possible. I have tried to install "Visual Studio 2017 for C++ Desktop Development" as suggested, but it still not work, and rustup doesn't recognize Visual C++ Build Tools.

develop a Rust HelloWorld program on Windows is tougher than I expected :( Another test: #1003 (comment)Īfter that, I encountered this linker issue: rust-lang/rust#30319 It may affect the linker.Įdit: rust requires Windows SDK (8.1 or 10 is ok). Install Visual C++ 2015 Build Tools with the DEFAULT installation will solve this problem 😄 and remember to re-proceed the installation with rustup-init. But it seems that the installer's custom mode doesn't behave the same as the DEFAULT installation mode no matter the custom packages which we have chosen. I have tested many custom installation settings of Visual C++ 2015 Build Tools installer.
