Configuration for a Rust crate published to crates.io.
- Auto-updates Cargo.toml version
- Updates Cargo.lock after version bump
- Publishes to crates.io
- Supports workspace versioning
- Copy
.github/workflows/release.ymlto your repo - Add
CARGO_REGISTRY_TOKENsecret (get from crates.io) - Add release labels to your PRs
If using Cargo workspaces with shared versioning:
# Cargo.toml
[workspace.package]
version = "1.0.0"
[package]
version.workspace = trueRelease Pilot automatically detects and updates the workspace version.
| Label | Effect |
|---|---|
release:major |
Breaking API changes |
release:minor |
New features (backwards compatible) |
release:patch |
Bug fixes |
release:rc |
Release candidate |