mit einem Klick
update-version
// Update project versions and release tag in one consistent flow (Cargo.toml, xtask, docs, and git tag).
// Update project versions and release tag in one consistent flow (Cargo.toml, xtask, docs, and git tag).
| name | update-version |
| description | Update project versions and release tag in one consistent flow (Cargo.toml, xtask, docs, and git tag). |
Use this skill when preparing a release version update so crate versions and git tags do not drift.
Keep release identifiers consistent across:
Cargo.toml ([package].version)xtask/Cargo.toml ([package].version)vX.Y.Z)patch (when no argument is given)minor or majorCargo.toml.minor -> minor bump with patch reset to 0major -> major bump with minor/patch reset to 0vX.Y.Z does not already exist./Users/jxck/develop/sptth/Cargo.toml to version = "X.Y.Z"./Users/jxck/develop/sptth/xtask/Cargo.toml to version = "X.Y.Z".README.md VERSION=vX.Y.Z).Cargo.lock manually.cargo check --workspace).cargo run -p xtask -- fmt-checkcargo test -qcargo check --workspacedocs/commit-message.md.vX.Y.Z on the update-version commit.git push origin maingit push origin vX.Y.Z# bump examples
# /update-version -> patch bump (default)
# /update-version minor -> minor bump
# /update-version major -> major bump
# example computed target: 0.0.4
git tag --list "v0.0.4"
cargo run -p xtask -- fmt-check
cargo test -q
cargo check --workspace
git tag -a v0.0.4 -m "v0.0.4"
git show --no-patch --oneline v0.0.4
Provide:
fmt-check/test/check)Run a repository-wide maintenance pass before merge/release. Covers cleanup, formatting, tests, docs, security, and CI checks.
Use when changing Rust code paths that return errors or log failures. Ensures errors are actionable, consistent, and safe.
Use before merging security-relevant Rust changes. Catches common local-service security regressions.
Use when adding or modifying tests. Ensures behavior changes are covered with focused tests and fast feedback.
Use when making code or documentation changes in this repository. Provides consistent workflow and validation steps.