after VS Code presented the notification that there are updates to the Rust toolchain, I did a rustup update. This was not sucessfull. A cargo run results in
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2025-01-09, rust version 1.84.0 (9fc6b4312 2025-01-07)
**error**: Missing manifest in toolchain 'stable-x86_64-pc-windows-msvc'
a second rustup update resulted in
rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2025-01-09, rust version 1.84.0 (9fc6b4312 2025-01-07)
info: syncing channel updates for '1.76-x86_64-pc-windows-msvc'
info: checking for self-update
info: downloading self-update
stable-x86_64-pc-windows-gnu unchanged - rustc 1.84.0 (9fc6b4312 2025-01-07)
stable-x86_64-pc-windows-msvc unchanged - (rustc does not exist)
1.76-x86_64-pc-windows-msvc unchanged - rustc 1.76.0 (07dca489a 2024-02-04)
I did what was suggested in the response to a previous post on this ("About Installation" - About Installation), to no avail.
I tried to switch to the gnu tool chain, but this gives me error: Error calling dlltool 'dlltool.exe': program not found
The dlltool error seems to be caused by using a 64-bit GNU toolchain in Rust with a 32-bit MinGW installation, or just lack of a compatible MinGW:
Note that the GNU/MinGW target is different from MSVC target and isn't fully compatible with the official Microsoft ecosystem based on Visual Studio toolchain.
Thanks for the super quick answer. In the meantime, I noticed that quite a number of dirs and files were missing in the folder stable-x86_64-pc-windows-msvc, I did a rustup toolchain uninstall stable
followed by a toolchain install
which fixed the issue for the msvc toolchain.