tldr/pages/common/cargo-generate-lockfile.md

10 lines
425 B
Markdown
Raw Normal View History

# cargo generate-lockfile
2023-10-29 08:54:53 +00:00
> Generate the `Cargo.lock` file for the current package. Similar to `cargo update`, but has less options.
> If the lockfile already exists it will be rebuilt with latest version of every package.
> More information: <https://doc.rust-lang.org/stable/cargo/commands/cargo-generate-lockfile.html>.
- Generate a `Cargo.lock` file with the latest version of every package:
`cargo generate-lockfile`