- Published on
刚从 Rust.cc 日报看到的。欢呼ing!
## Crate.io Mirror
`~/.cargo/config`:
```toml
[source.crates-io]
replace-with = 'rsproxy'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
```
Rustup Mirror
`~/.zshrc` or `~/.bashrc`:
```shell
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
...