Upgrade your dependencies by automatically fixing your code
Dont be afraid to upgrade
cargo install cargo-up --features cli --no-default-features
Assuming that you have a project with the following
[dependencies] foo = "0.8.2"
foo has released
0.9.0 with breaking changes along with a new release of their
foo_up which details the changes, you can simply run the following command in your
cargo up dep foo
Your project code will be automatically upgraded to use the new
NOTE: The tool upgrades to the latest version of the dependency, which means it can do several sequential version upgrades one after the other in a single run.