各類常用映象加速配置

Nolca發表於2024-10-13

~/.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/

相關文章