Cargo info subcommand for querying crate details from command line

Too many times a I had to leave terminal window and go to browser to query crate on crates.io.
Finally I wrote this subcommand to perform the query from CLI and also integrate with scripts if needed.
Available as cargo install cargo-info

Some usage example below

$ cargo info cargo-info
Crate:          cargo-info
Version:        0.2.0
Description:    Extends cargo to query crates.io registry for crates details
Downloads:      40
Homepage:       https://gitlab.com/imp/cargo-info
Documentation:
Repository:     https://gitlab.com/imp/cargo-info.git


$ cargo info -v cargo-info
Crate:          cargo-info
Version:        0.2.0
Description:    Extends cargo to query crates.io registry for crates details
Downloads:      40
Homepage:       https://gitlab.com/imp/cargo-info
Documentation:
Repository:     https://gitlab.com/imp/cargo-info.git
License:        Apache-2.0/MIT
Keywords:       ["subcommand", "info", "cargo"]
Created at:     2016-05-10T14:59:38Z
Updated at:     2016-05-22T09:50:37Z

$ cargo info -r cargo-info
https://gitlab.com/imp/cargo-info.git

$ cargo info -rv cargo-info
Repository:     https://gitlab.com/imp/cargo-info.git

Would love to get feedback/flame.

10 Likes

This is pretty cool :slight_smile:
I think the license information is important enough to be shown in the non-verbose mode though.

Thanks. If you feel strong about displaying license data - open ticket !

Lots of people have asked for a tool like this! I would support even moving something like this into cargo itself.

2 Likes

It couldn't be better if it can be built by rust stable.

I need to look into using serde without plugins. I have to admit I never tried it.

Just released new drop (0.3.0) that supports rust stable. Enjoy !

2 Likes

Hooray! Thank you very much for your tool. It works like a charm. :slight_smile:

@Congee Glad you find it useful !