-
Prepare a clean release checkout
git fetch origin --tags git checkout vX.Y.Z # replace with the release tag cargo clean -
Verify metadata and package contents
cargo package
Inspect the generated tarball under
target/package/to confirm the right files are included. -
Authenticate with crates.io
cargo login $CARGO_REGISTRY_TOKEN -
Publish
cargo publish
Publishing may take a few minutes before the crate appears in search results.
-
Tag/Release Ensure the git tag matches the published version and update release notes.