Show what files would go into the package.

Section: Local packaging

List packaged files

bash
bash
cargo package --list
Explanation

Useful for catching missing files or extra junk before publishing.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Local packaging
Create a package tarball
Build the package as it would be published.
OpenIn sheetbashsame section
Validate publish without uploading
Run all publish checks without actually publishing.
OpenIn sheetbashsame section
Clean before a release build
Rebuild from a clean state for reproducibility.
OpenIn sheetbashsame section
Install a binary from crates.io
Install a published executable crate.
OpenIn sheetbash1 tag match
Save a crates.io API token
Authenticate Cargo for publishing.
OpenIn sheetbash1 tag match
Build an optimized release binary
Compile the release artifact for shipping.
OpenIn sheetbash1 tag match