Cargo info subcommand for querying crate details from command line


#1

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.


#2

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


#3

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


#4

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


#5

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


#6

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


#7

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


#8

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


#9

@Congee Glad you find it useful !