You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
If one is using a mirror of crates.io, the error message you get when you attempt to publish is confusing. It says:
error: crates cannot be published to crates.io with dependencies sourced from other
registries either publish `bitflags` on crates.io or pull it into this repository
and specify it with a path and version
(crate `bitflags` is pulled from registry `https://github.com/rust-lang/crates.io-index`)
The last line clearly says that it is from "crates.io".
Connection to GitHub is basically trash for some ISPs in China, so a mirror is sometimes required. Having to comment out ~/.cargo/config every time I need to publish a crate can be annoying.
Problem
If one is using a mirror of crates.io, the error message you get when you attempt to publish is confusing. It says:
The last line clearly says that it is from "crates.io".
Steps
.cargo/config
file to set up the mirror:cargo publish --dry-run
Possible Solution(s)
Notes
The text was updated successfully, but these errors were encountered: