HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cargo package — Assemble a local package into a distributable tarball (a `.crate` file). Similar to `cargo publish -

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlocalassemblecargo packagecliintodistributablepackage

Problem

How to use the cargo package command: 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>.

Solution

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]}}

Code Snippets

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]}}

Context

tldr-pages: common/cargo package

Revisions (0)

No revisions yet.