cargo-publish
Upload a package to a registry. tldr-pages
On several platforms
Several platforms
Upload a package to a registry. Note: You have to add an authentication token using cargo login before publishing a package.
Perform checks, create a .crate file, and upload it to the registry
cargo publishIdentifySimulate publishing, performing checks, and creating a .crate file without uploading it (equivalent of cargo package)
cargo publish --dry-runIdentifyUse the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>)
cargo publish --registry nameIdentify