deepin系统Rust国内镜像加速 vim ./cargo/config 粘贴 [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" vim 输入法英文状态输入法冒号 : 输入x回车然后保存成功。