Rust 开发环境搭建
环境搭建
1、开发工具RustRover 或者vs code
2、Cygwin64 安装
https://cygwin.com/install.html
在工具终端执行:
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
2、Hello World
fn main() {
println!("Hello, world!");
}
3、开发环境报错
error: linker `link.exe` not found
|
= note: program not found
执行【Cygwin64 安装】命令,对项目进行配置 Rust 使用 MinGW