曹耘豪的博客

Rust

  1. 安装加速
  2. cargo
  3. cargo国内源
  4. 找不到link
  5. 安装gcc

安装加速

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

cargo

cargo国内源

编辑${userhome}/.cargo/config文件

1
2
3
4
5
[source.crates-io]
replace-with = 'mirror'

[source.mirror]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
1
2
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu

安装gcc

https://sourceforge.net/projects/mingw-w64/

   /