Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

cargo-release

$ cargo-release Community High Risk
crate-ci · Code & DevOps · MIT / Apache-2.0 · macos / linux / windows

Rust 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.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install cargo-release
CLI vs MCP Decision CLI Only

Release automation wraps cargo publish and git tag/push directly; dry-run-by-default CLI execution is the safest control plane.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Dry-run by default and --no-confirm headless mode are strong, though there is no --json output for release plans.

  • Requires explicit -x / --execute to leave dry-run mode
  • Supports --no-confirm to skip confirmation prompts
Trust & Safety 19 / 25

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
  • --execute performs irreversible public crate publishing
Setup & Portability 14 / 15

Available via Homebrew, cargo install, and GitHub Releases across macOS, Linux, and Windows; requires Rust/Cargo toolchain.

  • Cross-platform binary integrating with Cargo
Utility & Efficiency 13 / 15

Handles multi-crate workspace version synchronization, dependency updates, and release sequencing reliably.

  • Eliminates manual workspace Cargo.toml version bumps
Maintenance & Lineage 9 / 10

Maintained by the respected crate-ci Rust tooling org under MIT/Apache-2.0.

  • Active crate-ci/cargo-release repository
Docs & Verifiability 8 / 10

Clear docs/reference.md and --help output detailing config and release steps.

  • Well-documented CLI and release.toml reference

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Uses CARGO_REGISTRY_TOKEN or ~/.cargo/credentials.toml for crates.io, and local git credentials for pushing tags.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT / Apache-2.0 open-source Rust tool; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Simulate a patch release in default dry-run mode
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

Execute a release non-interactively (after review)
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 / --execute is explicitly supplied.
  • + Coordinates multi-crate workspace version bumps, git tags, and crates.io publishing.

Caveats & Pitfalls

  • ! No --json output for inspecting planned workspace version changes.
  • ! Running --execute --no-confirm publishes permanently to crates.io and pushes tags remotely.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI