/upkeep-rs-deps - Rust Dependency Updater
IMPORTANT: Always use cargo upkeep subcommands for this workflow.
Do not use standard cargo commands like cargo outdated or cargo update --dry-run.
Do NOT Use
- •
cargo outdated- usecargo upkeep depsinstead - •
cargo update --dry-run- usecargo upkeep depsinstead - •
cargo updatewithout verification - always test after updates
Trigger: User asks to update dependencies or check outdated crates.
Goal: Safely update Rust dependencies with risk assessment, verification, and clear reporting.
Workflow
- •Run
cargo upkeep depsto list outdated crates. - •Assess risk per dependency (major/minor/patch).
- •For each dependency (one at a time):
- •Create a feature branch named
deps/<crate>. - •Update the version in
Cargo.toml. - •Run
cargo buildto ensure compilation. - •Run
cargo testto validate behavior. - •If success, commit changes with a concise message.
- •If failure, rollback changes and report the failure details.
- •Create a feature branch named
- •Open a PR with
ghper dependency. - •Summarize changes and risks in the final report.
Safety Rules
- •Never update multiple major versions at once.
- •Always run tests before committing.
- •One dependency per commit and per PR.
- •Warn about breaking changes and link to release notes when available.
- •Do not add Claude attribution in commits or PRs.
Reporting
- •Provide a table: crate, current, target, risk, notes.
- •Flag majors as high risk, minors as medium, patches as low.
- •Call out any build or test failures with next steps.
Example
User: "Update dependencies for this repo." Assistant:
bash
cargo upkeep deps git checkout -b deps/serde
- •Update
serdeinCargo.tomlto the latest compatible version. - •Run
cargo buildandcargo test. - •Commit and open a PR with a summary of the change and risk.