cargo-release
$ cargo-release Community High RiskRust Cargo subcommand that orchestrates version bumps in Cargo.toml, changelog hooks, git commits/tags, pushes, and crates.io publishing. Runs in dry-run simulation mode by default unless -x / --execute is passed.
brew install cargo-release Release automation wraps cargo publish and git tag/push directly; dry-run-by-default CLI execution is the safest control plane.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Dry-run by default and --no-confirm headless mode are strong, though there is no --json output for release plans.
- Requires explicit
-x/--executeto leave dry-run mode - Supports
--no-confirmto skip confirmation prompts
Dry-run-by-default safety net prevents accidental releases, but executing -x pushes git tags and publishes irreversible crate versions to crates.io.
- Safe default dry-run behavior
--executeperforms irreversible public crate publishing
Available via Homebrew, cargo install, and GitHub Releases across macOS, Linux, and Windows; requires Rust/Cargo toolchain.
- Cross-platform binary integrating with Cargo
Handles multi-crate workspace version synchronization, dependency updates, and release sequencing reliably.
- Eliminates manual workspace
Cargo.tomlversion bumps
Maintained by the respected crate-ci Rust tooling org under MIT/Apache-2.0.
- Active
crate-ci/cargo-releaserepository
Clear docs/reference.md and --help output detailing config and release steps.
- Well-documented CLI and
release.tomlreference
Security, Auth & Guardrails
Uses CARGO_REGISTRY_TOKEN or ~/.cargo/credentials.toml for crates.io, and local git credentials for pushing tags.
MIT / Apache-2.0 open-source Rust tool; free to use.
# cargo-release Agent Rules - Always run `cargo release <level>` WITHOUT `-x` / `--execute` first — dry-run is the default. - NEVER pass `-x` / `--execute` or `--no-confirm` without explicit user sign-off, as `crates.io` publishes are permanent.
Agent-Ready Command Recipes
Safe Read-Only Queries
cargo release patch
Runs in dry-run mode by default (without --execute), logging version bumps, tags, and publish steps without modifying files or remotes.
Controlled Writes & Previews
cargo release patch --execute --no-confirm
Performs the version bump, git tag/push, and crates.io publish non-interactively; requires explicit user approval.
Strengths for Agents
- + Safe by default: omits mutations unless
-x/--executeis explicitly supplied. - + Coordinates multi-crate workspace version bumps, git tags, and
crates.iopublishing.
Caveats & Pitfalls
- ! No
--jsonoutput for inspecting planned workspace version changes. - ! Running
--execute --no-confirmpublishes permanently tocrates.ioand pushes tags remotely.