Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SteveLauC/3df5e4da9a455035cc85721d73fc882d to your computer and use it in GitHub Desktop.
Save SteveLauC/3df5e4da9a455035cc85721d73fc882d to your computer and use it in GitHub Desktop.
crate.io mirror
#Put it in the file '$home /. Cargo / config'
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
#Replace it with your preferred mirror source
replace-with = 'sjtu'
#replace-with = 'ustc'
#Tsinghua University
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
#University of science and technology of China
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
#Shanghai Jiaotong University
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
#Rustcc community
[source.rustcc]
registry = "git://crates.rustcc.cn/crates.io-index"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment