cargo-upkeep
Unified Rust project maintenance CLI.
One install, one interface, unified output for common maintenance tasks like dependency updates, security audits, and project health scoring.
Status
Work in progress.
Installation
From crates.io
Using cargo-binstall
Requires cargo-binstall (https://github.com/cargo-bins/cargo-binstall):
From install script
Installs the binary and Claude Code skills:
|
Binary only (skip skills):
SKIP_SKILLS=1 |
From source (requires Rust 1.70+)
Usage
Direct binary invocation also works:
Global flags:
detect
Detect project configuration (edition, workspace, features).
deps
Report outdated dependencies with semver classification.
deps --security requires Cargo.lock. If it's missing, generate one with:
audit
Scan for RustSec advisories.
quality
Generate a project health grade with breakdown.
tree
Enhanced dependency tree output.
unused
Detect unused dependencies using cargo-machete.
Requires cargo-machete to be installed:
unsafe-code
Analyze unsafe code usage in dependencies using cargo-geiger.
Requires cargo-geiger to be installed:
Claude Code skills
Use the companion Claude Code skills for guided workflows:
/upkeep-rs-deps:skills/upkeep-rs-deps/SKILL.md/upkeep-rs-audit:skills/upkeep-rs-audit/SKILL.md/upkeep-rs-quality:skills/upkeep-rs-quality/SKILL.md
Comparison
| Tool | Focus | Where cargo-upkeep fits |
|---|---|---|
| cargo-audit | RustSec vulnerability scanning | cargo upkeep audit wraps advisory scanning with unified output |
| cargo-outdated | Outdated dependencies | cargo upkeep deps reports with semver classification |
Rate limiting
Crates.io requests are serialized and rate-limited to roughly one request per second. Large dependency sets will take at least one second per crate, plus network time.
Test tooling
- Some integration tests use
httpmock(dev dependency only) for crates.io client behavior. - Full test coverage for
unusedandunsafe-coderequirescargo-macheteandcargo-geiger.
Optional tooling installs:
Contributing
- Create or pick up a task in
bd. - Keep changes focused and add tests for new behavior.
- Run
cargo fmt,cargo clippy, andcargo testbefore submitting.
Changelog
See CHANGELOG.md for release history.
This project uses Conventional Commits and git-cliff for automated changelog generation.
License and credits
MIT licensed. See LICENSE.
Inspired by the JS/TS upkeep project and the Rust maintenance tool ecosystem.