PCYO 评测夜鸥 六度计算世界

少年强 则 中国强

Rust国内镜像配置

Rust国外地址下载非常慢,此处提供国内镜像及详细配置

配置 config 对应目录下新建config.toml

windows: C:\Users\User\.cargo\
linux/mac: ~/.cargo/:

 
 [source.crates-io] 
 replace-with = 'rsproxy' 
 
 [source.rsproxy] 
 registry = "https://rsproxy.cn/crates.io-index" 
 
 [registries.rsproxy] 
 index = "https://rsproxy.cn/crates.io-index" 
 
 [net] 
 git-fetch-with-cli = true 

配置环境变量

windows

 set RUSTUP_DIST_SERVER=https://rsproxy.cn 
 set RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup 

linux/mac:

export RUSTUP_DIST_SERVER="https://rsproxy.cn" 
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" 

插件下载

https://plugins.jetbrains.com/plugin/8182-rust/versions

本原创文章未经允许不得转载 | 当前页面:PCYO 评测夜鸥 六度计算世界 » Rust国内镜像配置

评论