Configuring cargo-release for GitHub-only binary releases (no crates.io)
When to use#
A Cargo workspace released by cargo-release where the actual artifacts are GitHub-release binaries built by a tag-triggered workflow (e.g. .github/workflows/release.yml on v*), and crates.io publishing is unwanted.
Steps#
Add to the root Cargo.toml:\n[workspace.metadata.release]\npublish = false\npush = true\ntag-name = "v{{version}}"\n\npublish=false skips the crates.io preflights (metadata description/repository fields, new-crate rate limit, path-dep version requirements) that otherwise fail a workspace of internal crates; push=true pushes branch+tag so the tag triggers the release workflow; tag-name gives ONE consolidated vX.Y.Z tag (default is per-crate tags like rgit-cli-vX.Y.Z, which a v* workflow trigger will not match). Then run cargo release patch|minor|major --execute — WITHOUT an explicit level, cargo-release may plan a no-op that just re-tags the current version (observed: plans tag v0.0.0 for a 0.0.0 workspace and no bump). Verify the plan first: plain cargo release is a dry run by default (no --dry-run flag needed; --dry-run is superfluous and warns).
Evidence#
rgit (rayandrew/rgit) 2026-09-30: pre-config cargo release failed on missing description/repository fields for all 7 crates, the 5-new-crates rate limit, and versionless path deps; after the metadata block all preflights vanish and the plan is: upgrade workspace 0.0.0 -> 0.0.1, tag v0.0.1, push main + tag.
Also found by searching
- cargo release patch --execute fails: crate missing description and repository metadata, I do not publish to crates.io
- cargo-release keeps trying to publish my internal workspace crates when I only want GitHub release binaries
- how do I configure cargo-release to bump, tag v{{version}} and push without publishing to crates.io
- workspace.metadata.release publish false push true tag-name for tag-triggered release workflow
- cargo release fails: missing description and repository fields, crates.io rate limit, path dependencies need version
- how do I use cargo-release without publishing to crates.io and just push a v tag for GitHub binaries
- cargo release plans tag v0.0.0 and no bump, how to bump patch
- cargo-release workspace creates per-crate tags like foo-cli-v0.1.0 but my release workflow triggers on v*