This document provides a comprehensive reference for all workflow bundles in Rust Workflow Bundles.
- Development Workflows
- Quality Gates
- Security & Auditing
- Dependency Management
- Testing Workflows
- Performance Analysis
- CI/CD Simulation
- Release Management
- Build Workflows
- Fix & Repair
- Maintenance
- Watch Mode
- Project Setup
- Context-Specific
- Git Integration
- Utilities
Complete development cycle
Runs: Format → Clippy → Test → Build
cdevUse when: Active development, before committing
Time: ~45 seconds
What it runs:
cargo fmt
cargo clippy -- -D warnings
cargo test
cargo buildQuick development check
Runs: Check → Test
cdevfastUse when: Quick feedback during development
Time: ~15 seconds
What it runs:
cargo check
cargo testFastest syntax check
Runs: Check only
cdevquickUse when: Just want to check if code compiles
Time: ~5 seconds
What it runs:
cargo checkDevelopment cycle with nextest
Like cdev but uses cargo-nextest (faster)
cdevxRequires: cargo-nextest
Pre-commit checks
Essential checks before committing code.
cpreUse when: Before every commit
Time: ~30 seconds
What it runs:
cargo fmt -- --check
cargo clippy -- -D warnings
cargo testStrict quality checks
More stringent quality checks with all features.
cstrictUse when: Before PR, weekly quality check
Time: ~2 minutes
What it runs:
cargo fmt -- --check
cargo clippy --all-targets --all-features -- -D warnings -W clippy::pedantic
cargo test --all-features
cargo doc --no-depsComplete quality gate
Runs 10+ quality checks. The most comprehensive check.
cqualityUse when: Before releases, important PRs
Time: ~5 minutes
What it runs:
- Format check
- Clippy (strict)
- All tests
- Doc tests
- Documentation build
- Security audit
- Unsafe detection
- Dependency check
- Unused dependencies
- Semver check
- Binary size analysis
Complete security audit
Full security audit with multiple tools.
csecauditUse when: Weekly, after adding dependencies, before releases
Time: ~1 minute
What it runs:
cargo audit # Security vulnerabilities
cargo geiger # Unsafe code detection
cargo deny check advisories # Security advisories
cargo deny check licenses # License complianceRequires: cargo-audit, cargo-geiger, cargo-deny
Quick security check
Fast security check with audit and geiger.
csecquickUse when: Quick security verification
Time: ~30 seconds
What it runs:
cargo audit
cargo geigerComplete dependency health check
Comprehensive dependency analysis.
cdephealthUse when: Weekly, when build times increase, before releases
Time: ~45 seconds
What it runs:
cargo machete # Unused dependencies
cargo outdated # Outdated packages
cargo audit # Security vulnerabilities
cargo tree --duplicates # Duplicate dependenciesRequires: cargo-machete, cargo-outdated, cargo-audit
Auto-fix dependency issues
Automatically fix common dependency problems.
cdepfixUse when: After dependency check finds issues
Time: ~1 minute
What it runs:
cargo machete --fix
cargo update
cargo audit fixClean and update dependencies
Complete dependency refresh.
cdeprefreshUse when: Starting fresh, troubleshooting build issues
Time: ~2 minutes
What it runs:
cargo clean
cargo update
cargo checkRun all test types
Comprehensive test execution across all targets.
ctestallUse when: Before releases, weekly full test
Time: ~2 minutes
What it runs:
cargo test --lib
cargo test --bins
cargo test --tests
cargo test --doc
cargo test --examplesTests with coverage report
Generate HTML coverage report.
ctestcovUse when: Checking code coverage
Time: ~3 minutes
What it runs:
cargo nextest run
cargo tarpaulin --out Html --output-dir coverage
open coverage/index.html # Opens reportRequires: cargo-nextest, cargo-tarpaulin
Test all feature combinations
Test with different feature flags.
ctestfeaturesUse when: Library development, before releases
Time: ~5 minutes (depends on features)
What it runs:
cargo hack test --feature-powerset --depth 2Requires: cargo-hack
Advanced testing suite
Advanced testing with mutation testing.
ctestadvancedUse when: Important releases, high-quality libraries
Time: ~10+ minutes
What it runs:
cargo nextest run
cargo hack test --each-feature
cargo mutants --test-tool nextestRequires: cargo-nextest, cargo-hack, cargo-mutants
Full performance analysis
Complete performance profiling.
cperfcheckUse when: Performance optimization, before releases
Time: ~5 minutes
What it runs:
cargo criterion # Benchmarks
cargo flamegraph # Profiling
cargo bloat --release # Binary sizeRequires: cargo-criterion, cargo-flamegraph, cargo-bloat
Quick performance check
Fast performance verification.
cperfquickUse when: Quick perf check during optimization
Time: ~2 minutes
What it runs:
cargo build --release
cargo bloat --release
cargo criterionOptimized build with analysis
Release build with size analysis.
cbuildoptUse when: Checking release binary
Time: ~1 minute
What it runs:
cargo build --release
cargo bloat --release --crates
ls -lh target/release/Simulate CI pipeline
Simulate GitHub Actions CI locally.
cciUse when: Before pushing, before creating PR
Time: ~2 minutes
What it runs:
cargo fmt -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo nextest run --all-features # or cargo test
cargo doc --no-deps --all-features
cargo build --all-featuresFull CI with security
Complete CI including security checks.
ccifullUse when: Before important pushes, weekly
Time: ~5 minutes
What it runs:
- All
ccichecks - Security audit
- Dependency check
- Unsafe detection
- Semver check
Quick CI feedback
Fast CI verification.
ccifastUse when: Quick PR checks
Time: ~1 minute
What it runs:
cargo fmt -- --check
cargo clippy -- -D warnings
cargo nextest run # or cargo testPre-release checklist
Complete pre-release verification (7 steps).
cpreleaseUse when: Before every release
Time: ~5 minutes
What it runs:
- Format & Clippy
- All tests
- Documentation
- Semver compatibility
- Security audit
- Dependency check
- Package check
Create release
Create and publish release.
crelease patch # 1.0.0 -> 1.0.1
crelease minor # 1.0.0 -> 1.1.0
crelease major # 1.0.0 -> 2.0.0Use when: Publishing new version
Requires: cargo-release
Build all targets
Build everything in dev and release.
cbuildallUse when: Full project build
Time: ~5 minutes
Clean and rebuild
Fresh build from scratch.
crebuildUse when: Troubleshooting build issues
Time: ~3 minutes
Auto-fix everything
Automatically fix common issues.
cfixallUse when: Quick cleanup, after merging
Time: ~1 minute
What it runs:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged
cargo machete --fix
cargo audit fixFix and verify
Fix issues and verify they're resolved.
cfixverifyWhat it runs:
cfixall
cargo check
cargo testNuclear option
Fix absolutely everything (destructive).
cnuclearUse when: Everything is broken
Warning: This is destructive - commits changes
What it runs:
cargo clean
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features
cargo update
cargo test --all-featuresFull weekly maintenance
Complete maintenance routine.
cmaintenanceUse when: Every Friday, monthly deep clean
Time: ~5-10 minutes
What it runs:
rustup update
cargo install-update -a
cargo update
cargo clean
cargo build
cargo test
cargo auditProject health dashboard
Show project health metrics.
chealthUse when: Daily check-in, weekly review
Shows:
- Lines of code
- Dependency tree
- Unsafe code usage
- Outdated packages
- TODO/FIXME count
Watch and run dev cycle
Auto-run check + test on file changes.
cwatchdevUse when: Active development
Requires: watchexec
Watch with quality checks
Auto-run format + clippy + test.
cwatchqualityUse when: Maintaining code quality while developing
Requires: watchexec
Watch and run
Auto-run cargo run on changes.
cwatchrunUse when: Developing binary/application
Requires: watchexec
New CLI project with best practices
Create new project with common dependencies.
cnewpro myappCreates project with:
- clap (CLI parsing)
- anyhow (error handling)
- thiserror (error types)
- serde + serde_json
- pretty_assertions (dev)
- criterion (dev)
New library project
Create new library project.
cnewlib mylibBefore standup/demo
Quick check before showing work.
cstandupWhat it runs:
cargo build --release
cargo testPR preparation
Complete PR preparation.
cprWhat it runs:
cargo fmt
cargo clippy --all-targets --all-features -- -D warnings
cargo nextest run --all-features
cargo doc --no-deps
cargo semver-checks
git statusProduction-ready build
Build for production with checks.
cproductionWhat it runs:
cargo test --all-features
cargo audit
cargo build --release
cargo bloat --releaseCommit with checks
Run checks then commit.
cgitcommit "feat: add feature"What it runs:
cpre
git add .
git commit -m "message"Push with CI
Run CI then push.
cgitpushWhat it runs:
cci
git pushShow all commands
Display help for all available bundles.
cbundles# Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh# Install binstall first (faster)
cargo install cargo-binstall
# Essential tools
cargo binstall -y cargo-nextest cargo-audit cargo-geiger \
cargo-machete cargo-deny cargo-outdated watchexec-cli
# Quality & Testing
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-releasechealth
cwatchdev
# ... code ...
cpre
git commit -m "feat: add feature"
cci
git pushcmaintenance
cdephealth
csecauditcprelease
crelease patch
cargo publishcnuclear
cpre
git commit -m "fix: critical bug"
cgitpush- Start simple: Use
cdev,cpre,ccifirst - Use watch mode:
cwatchdevduring development - Auto-fix first: Run
cfixallwhen things break - Regular maintenance:
cmaintenanceevery Friday - Before releases: Always run
cprelease
Command not found?
source ~/path/to/rust-bundles.shTool missing?
- Bundles will fallback gracefully
- Install with:
cargo install <tool>
Too slow?
- Use faster variants:
cdevfast,ccifast - Enable incremental builds
For more information, see the main README