cargo-package
Assemble a local package into a distributable tarball (a .crate file). tldr-pages
On several platforms
Several platforms
Assemble a local package into a distributable tarball (a .crate file). Similar to cargo publish --dry-run, but has more options.
Perform checks and create a .crate file (equivalent of cargo publish --dry-run)
cargo packageIdentifyDisplay what files would be included in the tarball without actually creating it
cargo package --listIdentify