Skip to content
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

Implement registries ... #46

Open
przygienda opened this issue Mar 6, 2019 · 2 comments
Open

Implement registries ... #46

przygienda opened this issue Mar 6, 2019 · 2 comments

Comments

@przygienda
Copy link

Now that multiple registries seems stable it would be good to allow that. Just take registry description with -Zunstable and use that URL ...

@g-k g-k added the enhancement label Mar 7, 2019
@g-k
Copy link
Owner

g-k commented Mar 7, 2019

👍 I don't have time to work on this right now, but I'd accept a PR.

Assuming these docs are up to date we could:

  • add an optional --registry arg
  • read the registry url from .cargo/config
  • read the auth token (if any) from the .cargo/credentials

Reading the toml .cargo files should resolve cargo's hierarchical-structure. We might be able to use the https://docs.rs/cargo_metadata/ crate.

Use https://github.com/alexcrichton/cargo-local-registry for local testing.

We could also add a --registry-url option to replace the hardcoded default at https://github.com/g-k/cargo-show/blob/master/src/main.rs#L17

@przygienda
Copy link
Author

sigh, no cycles here either unless it becomes pressing. Agree with plan ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants