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.
.crate file and upload it to the registry:cargo publish
.crate file but don’t upload it (equivalent of cargo package):cargo publish --dry-run
cargo publish --registry name