Update custom registry config for cargo-update
xiashali opened this issue · comments
Algae Xia commented
Since nightly-2019-09-10 due to a Cargo regression (or feature, but it's breaking without a major version bump, so) --registry looks into a different key, requiring this additional stanza to ensure correct updates
Also see
https://crates.io/crates/cargo-update
https://doc.rust-lang.org/cargo/reference/source-replacement.html
Akase Haruka commented
Documentation updated.
[source.crates-io]
replace-with = "crates-io-cn"
[source.crates-io-cn]
registry = "https://crates-io.cn/crates.io-index"
[registries.crates-io-cn]
index = "https://crates-io.cn/crates.io-index"