~/.cargo/config.toml
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'fast'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
[source.kk]
registry = "https://kkgithub.com/rust-lang/crates.io-index"
[source.fast]
registry = "https://githubfast.com/rust-lang/crates.io-index"
[net]
git-fetch-with-cli = true
~/.gitconfig
[url "https://githubfast.com/"]
insteadOf = https://github.com/