cargo-show icon indicating copy to clipboard operation
cargo-show copied to clipboard

Implement registries ...

Open przygienda opened this issue 5 years ago • 2 comments

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

przygienda avatar Mar 06 '19 07:03 przygienda

👍 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

g-k avatar Mar 07 '19 02:03 g-k

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

przygienda avatar Mar 07 '19 03:03 przygienda