Preserve Cargo.lock for application projects
Currently Cargo.lock
is generated inside build/rust-project
, but that will not be stored to source control.
Cargo development recommendation is only to do that for applications, not libraries.
Provide a capability to copy Cargo.lock
out of its generated place, make to a source location where it can be committed.
-
Turn on by default for applications -
Turn off by default for libraries -
Make location of Cargo.lock configurable. -
Copy in Cargo.lock
as part ofprocessRustSources