因为国某些原因,直接执行rust-init.exe安装非常慢。可以使用国内镜像安装。
set CARGO_HOME=C:\rust
set RUSTUP_HOME=C:\rust
#用于更新 toolchain
set RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
#用于更新 rustup
set RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
再在cmd中 运行rust-init.exe
安装工具链:
rustup toolchain install nightly-x86_64-pc-windows-gnu
rustup toolchain install stable-i686-pc-windows-msvc
git 使用代理方法
git config --global http.proxy 'socks5://127.0.0.1:10080'

git config --global https.proxy 'socks5://127.0.0.1:10080'
取消代理
git config --global --unset http.proxy

git config --global --unset https.proxy

rustup default stable
rustup component list
rustup default stable-x86_64-unknown-linux-gnu
rustup target add arm-linux-androideabi
rustup default stable-i686-pc-windows-msvc 选择编译环境