crates-io-cn / crates-io-cn

Source code of crates-io.cn, also tools sets for sync crates.io

Home Page:https://crates-io.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update custom registry config for cargo-update

xiashali opened this issue · comments

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

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"