Skip to content

Rust安装

Window安装

  1. 下载rustup-init.exe

https://www.rust-lang.org/tools/install

  1. 设置镜像
shell
$ENV:RUSTUP_DIST_SERVER='https://mirrors.ustc.edu.cn/rust-static'
$ENV:RUSTUP_UPDATE_ROOT='https://mirrors.ustc.edu.cn/rust-static/rustup'
$ENV:RUSTUP_DIST_SERVER='https://mirrors.ustc.edu.cn/rust-static'
$ENV:RUSTUP_UPDATE_ROOT='https://mirrors.ustc.edu.cn/rust-static/rustup'
  1. 执行rustup-init.exe

4.下载C++环境 https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/

进去后勾选C++即可