标签:设置 href update ble gnu 反向 需要 component server
安装rustup和toolchain
yaourt -S rustup
rustup install stable
rustup default stable
# 如果要安装nightly
rustup install nightly
rustup default nightly
fn main() {
println!("Hello, World!");
}
rustup component add rust-src
cargo install racer
cargo install rustfmt
以zsh为例,设置.zshenv为以下内容,可以帮助补全和设置rust为使用国内的源。
RUST_SRC_PATH=(~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src)
RUSTUP_DIST_SERVER=(https://mirrors.ustc.edu.cn/rust-static)
RUSTUP_UPDATE_ROOT=(https://mirrors.ustc.edu.cn/rust-static/rustup)
# 如果要安装nightly
RUST_SRC_PATH=(~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src)
RUSTUP_DIST_SERVER=(https://mirrors.ustc.edu.cn/rust-static)
RUSTUP_UPDATE_ROOT=(https://mirrors.ustc.edu.cn/rust-static/rustup)
标签:设置 href update ble gnu 反向 需要 component server
原文地址:https://www.cnblogs.com/fatshen/p/10805530.html