Rustのインストール方法のメモ。
USERPROFILE%\.cargo\bin\
にインストールされ、パスが通っている。Visual Studio C++ Build toolsがインストールされていないと、実行時に以下のようなエラーが出る。
> cargo run
Compiling rust-example1 v0.1.0 (D:\example\rust\rust-example1)
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
note: VS Code is a different product, and is not sufficient.
error: could not compile `rust-example1` (bin "rust-example1") due to 1 previous error