cargo-generate-lockfile --- Generate the lockfile for a package
cargo generate-lockfile [options]
This command will create the Cargo.lock lockfile for the current package or workspace. If the lockfile already exists, it will be rebuilt with the latest available version of every package.
See also {{man “cargo-update” 1}} which is also capable of creating a Cargo.lock lockfile and has more options for controlling update behavior.
{} {{> options-display }} {{/options}}
{} {{> options-manifest-path }}
{{> options-ignore-rust-version }}
{{#option “--publish-time yyyy-mm-ddThh:mm:ssZ” }} Latest publish time allowed for registry packages (Unstable)
This is a best-effort filter on allowed packages, including:
--publish-time{{> options-locked }}
{{> options-lockfile-path }} {{/options}}
{{> section-options-common }}
{{> section-environment }}
{{> section-exit-status }}
Create or update the lockfile for the current package or workspace:
cargo generate-lockfile
{{man “cargo” 1}}, {{man “cargo-update” 1}}