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.

cargo package

cargo package --list