alveflo / cargo-extensions

Handy extensions for Cargo cli
MIT License
0 stars 0 forks source link

cargo add #1

Open alveflo opened 2 years ago

alveflo commented 2 years ago

Implement add option, i.e.

$ cargo add pkg [--version]
alveflo commented 2 years ago

Also add possiblity to specify what features to add.

$ cargo add pkg --feature "foo"
$ cargo add pkg --features ["foo", "bar"]

And list features before install. I.e.

$ cargo get-features pkg