mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:06:51 +08:00
d0a4ac3bc4
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
610 B
610 B
cargo publish
Upload a package to a registry. Note: You have to add an authentication token using
cargo loginbefore publishing a package. More information: https://doc.rust-lang.org/cargo/commands/cargo-publish.html.
- Perform checks, create a
.cratefile and upload it to the registry:
cargo publish
- Perform checks, create a
.cratefile but don't upload it (equivalent ofcargo package):
cargo publish {{[-n|--dry-run]}}
- Use the specified registry (registry names can be defined in the configuration - the default is https://crates.io):
cargo publish --registry {{name}}