Stop typing the same cargo commands. Use workflow bundles instead.
source ~/path/to/rust-bundles.sh
echo "source ~/path/to/rust-bundles.sh" >> ~/.zshrc
source ~/.zshrccdev # Format + Clippy + Test + Build
cpre # Pre-commit checks
cci # Full CI simulation
cfixall # Auto-fix everything
chealth # Project health dashboard# Morning
chealth
# While coding
cwatchdev # Auto-run tests on save
# Before commit
cpre
# Before push
cci
# Friday
cmaintenancecdev # Full dev cycle
cdevfast # Check + test only
cdevquick # Check only
cwatchdev # Watch modecpre # Pre-commit
cstrict # Strict checks
cquality # Everything (10+ checks)csecaudit # Full audit
csecquick # Quick auditcdephealth # Full dep check
cdepfix # Auto-fix deps
cdeprefresh # Clean + updatectestall # All test types
ctestcov # With coverage
ctestfeatures # All featurescperfcheck # Full analysis
cperfquick # Quick check
cbuildopt # Optimized buildcci # CI simulation
ccifull # CI + security
ccifast # Quick CIcprelease # Pre-release check
crelease patch # Patch release
crelease minor # Minor releasecfixall # Fix everything
cfixverify # Fix + verify
cnuclear # Nuclear optioncmaintenance # Full maintenance
chealth # Health checkcgitcommit "msg" # Commit with checks
cgitpush # Push with CIcnewpro myapp # New CLI project
cnewlib mylib # New librarycstandup # Before standup
cpr # Before PR
cproduction # Production buildcdev
→ cargo fmt
→ cargo clippy -- -D warnings
→ cargo test
→ cargo build
cci
→ cargo fmt -- --check
→ cargo clippy --all-targets --all-features
→ cargo nextest run --all-features
→ cargo doc --no-deps
→ cargo build --all-features
csecaudit
→ cargo audit
→ cargo geiger
→ cargo deny check advisories
→ cargo deny check licenses
cdephealth
→ cargo machete
→ cargo outdated
→ cargo audit
→ cargo tree --duplicates
cfixall
→ cargo fmt
→ cargo clippy --fix
→ cargo machete --fix
→ cargo audit fix
cmaintenance
→ rustup update
→ cargo install-update -a
→ cargo update
→ cargo clean
→ cargo build
→ cargo test
→ cargo audit
# Binstall first (faster)
cargo install cargo-binstall
# Essential
cargo binstall -y \
cargo-nextest \
cargo-audit \
cargo-geiger \
cargo-machete \
cargo-deny \
cargo-outdated \
watchexec-cli
# Quality
cargo binstall -y \
cargo-tarpaulin \
cargo-hack \
cargo-mutants
# Performance
cargo binstall -y \
cargo-bloat \
cargo-flamegraph \
cargo-criterion
# Release
cargo binstall -y \
cargo-semver-checks \
cargo-releaseBefore Commit
cfixall && cpreBefore Push
cciBefore PR
cfixall && cprBefore Release
cprelease && crelease patchEmergency Fix
cnuclear && cpreWeekly Maintenance
cmaintenanceNew Project
cnewpro myapp && cd myapp && cdev| Command | Manual | Bundle | Saved |
|---|---|---|---|
| Pre-commit | 2 min | 30s | 1.5 min |
| CI check | 5 min | 2 min | 3 min |
| Security | 3 min | 1 min | 2 min |
| Quality gate | 15 min | 5 min | 10 min |
Per day: 15-30 minutes Per week: 2-3 hours
Add to ~/.zshrc:
# Custom workflow
cmyflow() {
cargo fmt &&
cargo clippy -- -D warnings &&
cargo test &&
echo "✅ Done!"
}
# Database reset
cdbr() {
cargo run --bin migrate reset &&
cargo run --bin migrate up
}
# Deploy
cdeploy() {
cci &&
cargo build --release &&
scp target/release/app server:/opt/
}Command not found?
source ~/path/to/rust-bundles.shTool missing?
cargo install cargo-nextest
# Or bundles fallback automaticallyToo slow?
cdevfast # Instead of cdev
ccifast # Instead of ccicbundles # Show all commandscd ~/project
chealth
cwatchdevcpre
git commit -m "feat: new feature"
cci
git pushcmaintenance
chealth
git pushcstandup
cargo run --release# Develop
cwatchdev
# Before commit
cpre
# Before push
cci
# After PR approved
git pull
cargo build --releaseDevelopment: cdev, cwatchdev
Before Commit: cpre, cfixall
Before Push: cci
Security: csecaudit
Dependencies: cdephealth
Testing: ctestall, ctestcov
Performance: cperfcheck
Release: cprelease, crelease
Maintenance: cmaintenance, chealth
Emergency: cnuclear
# Fix and commit
cfixall && cpre && git commit -m "fix: issues"
# Full check
cquality
# Quick check
cdevfast
# Watch and develop
cwatchdev
# Weekly routine
cmaintenance && chealth
# Before release
cprelease && crelease patch
# Emergency
cnuclear && cci- Start with:
cdev,cpre,cci - Use watch mode:
cwatchdev - Auto-fix first:
cfixall - Check weekly:
cmaintenance - Before release:
cprelease
| Instead of | Use |
|---|---|
cargo fmt && cargo clippy && cargo test |
cdev |
cargo fmt -- --check && cargo clippy && cargo test |
cpre |
| Multiple CI commands | cci |
| Manual fixes | cfixall |
| Manual maintenance | cmaintenance |
cdev # Every hour
cpre # Before every commit
cci # Before every push
cfixall # When things break
cmaintenance # Every FridayDay 1-7: cdev, cpre, cci
Day 8-14: cfixall, csecaudit, chealth
Day 15-21: cwatchdev, cdephealth, cmaintenance
Day 22+: cquality, cprelease, custom bundles
- Use
cwatchdevduring development - Run
cprebefore every commit - Run
ccibefore every push - Run
cmaintenanceevery Friday - Create custom bundles for your workflow
Instead of typing 40 commands per day, type 9.
That's it. Install it. Use it. Save time.
source ~/path/to/rust-bundles.sh
cdevVersion 1.0 • For Rust 1.70+ • MIT License