Cargo: Something like `cargo query` or `cargo info` for information about a registry package

Created on 21 Nov 2014  路  4Comments  路  Source: rust-lang/cargo

It would be nice to be able to get the description, latest version(s), author, license, and the like, for a given registry package. Prior art includes npm view and gem query.

Somewhat related/complementary to #925

A-new-subcommand

Most helpful comment

I gave this a shot: https://github.com/g-k/cargo-show. I'm curious about how people might use it and how to improve it for them.

For example, I'd like to cache package GET requests like crates.io, but I'm not sure if it'd be better to use a sub command specific cache like ~/.cargo-show/ or a shared cache that other sub commands could use like ~/.cargo/cache/package-details/.

All 4 comments

:+1:

Now that cargo supports external installable sub-commands, does this make more sense to add via that mechanism, rather than being built-in?

That said, given that cargo search presumably already does most of this, maybe it just needs to get some new flags to print more info?

@felixc yeah I'd be in favor of seeing this bake externally first

I gave this a shot: https://github.com/g-k/cargo-show. I'm curious about how people might use it and how to improve it for them.

For example, I'd like to cache package GET requests like crates.io, but I'm not sure if it'd be better to use a sub command specific cache like ~/.cargo-show/ or a shared cache that other sub commands could use like ~/.cargo/cache/package-details/.

Was this page helpful?
0 / 5 - 0 ratings