安装
不管OS是否带有rust,都应使用rustup来安装rust
- linux/freebsd
curl https://sh.rustup.rs -sSf | sh
- windows
https://www.rust-lang.org/tools/install
windows下建议使用GNU的编译链接库,不使用microsoft的VC++运行库。
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu