cargo-edit is a command-line tool that allows you to add, remove and upgrade dependencies in your Cargo.toml . We’ve just released v0.3.0 of cargo-edit, our first full release in nearly a year.

The key feature of v0.3.0 is that we try not to mess up your Cargo.toml files any more. We’ve switched from serde to toml-edit , a formatting-aware toml parser.

Some of the other cool features:

Proxy support via environment variable

Allow simultaneous specification of both version and path

cargo-upgrade now supports --precise , --dry-run , --all , and --allow-prerelease .

now supports , , , and . Better error messages

We’ve still got more to do, though. There’s work underway to create a new toml parser that can handle the last few edge cases. Once that’s done, we can think about moving parts of cargo-edit into cargo itself. We’ve got a number of issues we’re looking for help with, so check out our issue list.

Thanks to all the contributors since v0.2.0: @bjgill, @dherman , @Eijebong, @ibabushkin, @killercup, @m-cat, @ordian, @vitiral, and @whentze