mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 19:57:59 +00:00
Update cheatsheets
This commit is contained in:
18
cargo-package
Normal file
18
cargo-package
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user