编辑 ~/.cargo/config 文件,添加以下内容: [source.crates-io] replace-with = 'mirror' [source.mirror] registry = "https://(Loading...)" 该镜像可加快 cargo 读取软件包索引的速度。