rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Allow to use MSVC - VS 2022

Open Andrysky opened this issue 2 years ago • 10 comments

Problem you are trying to solve

RUSTUP-INIT.EXE https://www.rust-lang.org/tools/install requires old toolchain (MSVC - VS 2019 and older)

the modern version is visual studio 2022 / MSVC - VS 2022 please support this version - so that you do not need to install an outdated toolchain on your computer

Solution you'd like

Allow to use MSVC - VS 2022

Notes

No response

Andrysky avatar Apr 10 '23 15:04 Andrysky

You can use VS 2022. The Rust website just doesn't get updated that often.

ChrisDenton avatar Apr 10 '23 16:04 ChrisDenton

@Andrysky where did it say you have to have 2019? Perhaps we can update the docs there whereever that is with something more inclusive?

rbtcollins avatar Apr 10 '23 16:04 rbtcollins

It depends on the language. Some languages are very slow to be updated. Unfortunately I'm not multilingual enough to do translations.

And even changes to the English language website can take a long while to be published.

ChrisDenton avatar Apr 10 '23 19:04 ChrisDenton

@ChrisDenton I'm not sure that the poster was referring to the web page were they? At least in english that page doesn't have a reference to 2019 at all.

If it is a stale version of the page, we can update the bug to reflect that, if its something else (e.g. some help text we missed), I'd like to fix that.

rbtcollins avatar Apr 10 '23 21:04 rbtcollins

For example, the Spanish language text does as do other translations. The wording and links they use depend on when that section was last translated from the English.

I've updated the English section to simply link to rustup's guide as that is more thorough and can be updated more frequently then the Rust Book.

ChrisDenton avatar Apr 10 '23 22:04 ChrisDenton

I apologize for forgetting the steps to paint / write in more detail:

after running rustup-init.exe it is reported that you need to have "MSVC - VS 2019 C++ x64/x86 build tools" and "Windows 10 SDK" image

  1. I already have visual studio 2022 with msvc v143-vs 2022 c++ x64/x86 build tools - why can't I use it?
  2. at least as a temporary improvement, you can write that if you already have visual studio 2022 installed, then you can simply install the "msvc v142 - vs 2019 c++ x64/x86 build tools" component image

Andrysky avatar Apr 11 '23 08:04 Andrysky

Hm, I can confirm I'm seeing the message too but I'm not sure why. I removed references to 2019 a while back. In any case, it works fine with 2022. I confirmed that these instructions work. For VS 2022 the only two things you absolutely need are:

  • MSVC v143 - VS 2022 C++ x64/86 build tools (Latest)
  • Windows 11 SDK (10.0.22621.0)

But you can use any version of the Windows SDK.

ChrisDenton avatar Apr 11 '23 09:04 ChrisDenton

@Andrysky What does rustup-init.exe --version report ? For the specific rustup-init.exe you ran?

rbtcollins avatar Apr 11 '23 20:04 rbtcollins

@rbtcollins

cmd /c rustup-init.exe --version
rustup-init 1.25.2 (17db695f1 2023-02-01)

Andrysky avatar Apr 13 '23 05:04 Andrysky

Thanks!

rbtcollins avatar May 28 '23 19:05 rbtcollins