cargo review-deps update-diff -d diff -- --package foo --precise 1.2.3 should put the before/after snapshots of the packages that would be changed by cargo update --pacakge foo --precise 1.2.3 command, without doing the actual update.
implementation:
run cargo metadata once to learn about current state
remember Cargo.lock
run cargo update, forwarding args.
parse update's output to learn about changes (alternatively, diff metadatas?)
run cargo metadata again, to learn about the new state
cargo review-deps update-diff -d diff -- --package foo --precise 1.2.3
should put the before/after snapshots of the packages that would be changed bycargo update --pacakge foo --precise 1.2.3
command, without doing the actual update.implementation:
cargo metadata
once to learn about current stateCargo.lock
cargo update
, forwarding args.cargo metadata
again, to learn about the new stateCargo.lock