I recently made this pr: https://github.com/wraithan/cargo-bump/pull/20 to cargo-bump. Cargo-bump is a cargo command similar to
npm version. Currently, when you upgrade the version of your package, you have to run
cargo run or
cargo build to update the lock file. That pr aims to make it part of the
cargo bump command to reduce friction further.
My question is: is there a better way to update the lock file than just editing the file programatically? Are there any pitfalls with doing it this way that I should be aware of?