-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for alternate registries #201
Comments
Having a quick look at the code, I think that the things that are required in order to implement this are:
Also I would suggest using registry_index_path for crates.io, this way if a user is using another registry (for example a mirror), then they will use the source which is appropriate to their cargo config. |
For reference - alternative registry support has now landed in nightly. See https://boats.gitlab.io/blog/post/2017-10-28-alternative-registries/ for documentation on use. |
An alternative to getting the API using cargo-edit itself, would be to get an interface added to cargo library which allows getting the API (or maybe the whole config.json object from the index), that would then make it a very simple change in cargo-edit. |
Currently, we assume that https://crates.io is the only registry. Given that alternate registries have landed/will be landing shortly, we should consider extending support.
The text was updated successfully, but these errors were encountered: