I don't manage to understand what cargo update do and I find the doc inconsistent.
https://doc.rust-lang.org/cargo/commands/cargo-update.html
Actually it says:
The documentation needs to be updated. cargo update will update minor and patch versions of your dependencies inside Cargo.lock, i.e. update everything without introducing breaking changes as long as your dependencies adhere to Cargo's semver compatibility.
There is also cargo upgrade which will upgrade dependencies in Cargo.toml. It can be instructed to upgrade even major versions and then you might have to fix some breaking changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With