Hello!
I'd like to check in CI if the Cargo.lock
file accurately represents the Cargo.toml
(e.g.: running cargo build
wouldn't change the lockfile).
I see that it's possible to do cargo update --locked
, but that checks if the lockfile is using as up-to-date compatible versions as possible, which is a stricter check than I want.
Is it possible to check accuracy of Cargo.lock
(not missing any deps, doesn't have unnecessary deps) other than by running cargo build
and verifying that Cargo.lock
didn't change?