rust 配置

rustup 镜像

  • cmd 中输入以下代码,设置环境变量
bash 复制代码
setx RUSTUP_UPDATE_ROOT https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup
setx RUSTUP_DIST_SERVER https://mirrors.tuna.tsinghua.edu.cn/rustup

crates.io 索引镜像

C:\Users\用户名\.cargo\config 文件中添加如下代码,1.68 开始支持稀疏索引

复制代码
[source.crates-io]
replace-with = 'mirror'

[source.mirror]
registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
相关推荐
Bruce_kaizy14 小时前
C++树形数据结构————树状数组、线段树中“逆序对”的问题
开发语言·数据结构·c++
❥ღ Komo·14 小时前
K8s蓝绿发布实战:零停机部署秘籍
java·开发语言
梨落秋霜14 小时前
Python入门篇【函数】
开发语言·python
电饭叔14 小时前
利用类来计算点是不是在园内《python语言程序设计》2018版--第8章18题第3部分
开发语言·python
martian66515 小时前
深入解析C++驱动开发实战:优化高效稳定的驱动应用
开发语言·c++·驱动开发
HappRobot15 小时前
python类和对象
开发语言·python
鸡吃丸子15 小时前
React Native入门详解
开发语言·前端·javascript·react native·react.js
盼哥PyAI实验室15 小时前
Python YAML配置管理:12306项目的灵活配置方案
开发语言·python
漂亮的小碎步丶15 小时前
【启】Java中高级开发51天闭关冲刺计划(聚焦运营商/ToB领域)
java·开发语言
hd51cc15 小时前
MFC运行时
开发语言·mfc