各类常用镜像加速配置

~/.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/
posted @ 2024-10-13 22:59  Nolca  阅读(9)  评论(0编辑  收藏  举报