🎀 Rust安装

第一步,官网下载rustup-init.ext~/Downloads

第二步,打开Powershell,配置代理

$proxy='http://<UserName>:<Password>@<IP>:<PORT>'

$ENV:HTTP_PROXY=$proxy 
$ENV:HTTPS_PROXY=$proxy

然后:

$ENV:RUSTUP_DIST_SERVER='https://mirrors.ustc.edu.cn/rust-static' 
$ENV:RUSTUP_UPDATE_ROOT='https://mirrors.ustc.edu.cn/rust-static/rustup'

第三步,安装

cd Downloads
.\rustup-init.exe

使用GNU版本,避免安装Visual Studio

第一步,选择2) Customize installation

第二步,Default host triple? [x86_64-pc-windows-msvc]下输入x86_64-pc-windows-gnu,即自定义成GNU;其他默认

第三步,修改完成后显示:

Current installation options:


default host triple: x86_64-pc-windows-gnu
  default toolchain: stable
            profile: default
modify PATH variable: yes

选择1) Proceed with selected options (default - just press enter)完成安装