New cargo subcommands WIP: cargo (add | list)

This weekend, I spent some time refactoring an old project of mine: Subcommands for Cargo to edit Cargo.toml files from the command line. There is a lot to be done (I've added some Github issues), but the basic functionality described in the Readme should work now.

Basically:

cargo add <crate> [--dev|--build] [--ver=<semver>|--git=<uri>|--path=<uri>] [options]
cargo list [<section>] [--tree] [options]

Get it here: https://github.com/killercup/cargo-edit

I'd love it if you gave it a try. (But backup your files just in case!)

Don't hesitate to report any bugs—or maybe send a PR? :slight_smile:


There's also some discussion on reddit.

4 Likes