1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/cargo-package.md
Lena 02c7e38f8b
cargo-*: add page; cargo-logout: update page (#11337)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2023-10-31 08:29:03 +01:00

451 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 --list