npm, PyPI and uv, Go, rustup and crates.io, RubyGems and Bundler, and Maven reach their registries slowly or not at all from China. On a cn install, link the profile's environment, cargo and gem drop-ins into place. A regular file the admin wrote is never replaced; the install fails instead.
6 lines
124 B
TOML
6 lines
124 B
TOML
[source.crates-io]
|
|
replace-with = "aliyun"
|
|
|
|
[source.aliyun]
|
|
registry = "sparse+https://mirrors.aliyun.com/crates.io-index/"
|