window 系统 Rust 语言 cargo build 配置

PS E:\git\code\local\local> cargo build
   Compiling local v0.1.0 (E:\git\code\local\local)
error: linker `link.exe` not found
  |
  = note: 系统找不到指定的文件。 (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

error: could not compile `local` due to previous error
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
cargo build

你可能感兴趣的:(window 系统 Rust 语言 cargo build 配置)