Rust环境配置
docs
Rust nightly build
use some feature on nightly or test
参考
rustup run nightly cargo build
Rust 镜像源
export RUSTUP_DIST_SERVER=http://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=http://mirrors.ustc.edu.cn/rust-static/rustup
Rust配置
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
# 指定镜像
replace-with = 'sjtu'
# 清华大学
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
# 中国科学技术大学
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
# 上海交通大学
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
# rustcc社区
[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
为项目配置镜像源
[registry]
index = “https://mirrors.ustc.edu.cn/crates.io-index/”
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = “https://mirrors.ustc.edu.cn/crates.io-index/”
crate
发布软件包
cargo login ciopgH86Exacp25wV9YLKXs5mAlZXV5HkC7
参考
不要让今天成为明天的遗憾!