1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 02:35:41 +02:00
tldr/pages/common/cargo-package.md
Managor d0a4ac3bc4
cargo*: add option placeholders and fix some syntax (#17270)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-07-20 15:41:22 +00:00

460 B

cargo package

Assemble a local package into a distributable tarball (a .crate file). Similar to cargo publish --dry-run, but has more options. More information: https://doc.rust-lang.org/cargo/commands/cargo-package.html.

  • Perform checks and create a .crate file (equivalent of cargo publish --dry-run):

cargo package

  • Display what files would be included in the tarball without actually creating it:

cargo package {{[-l|--list]}}