学习 Rust。
加速安装
1 2 3
| set RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static set RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/ rustup-init.exe
|
Cargo 配置
~/.cargo/config
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[target.x86_64-pc-windows-msvc] rustflags = ["-Ctarget-feature=+crt-static"] [target.i686-pc-windows-msvc] rustflags = ["-Ctarget-feature=+crt-static"]
|
The Rust Programming Language
官方文档
《Rust 程序设计语言》中文译本
打开离线版