Stop typing the same cargo commands over and over. Use powerful workflow bundles instead.
Bundle multiple cargo commands and extensions into single, easy-to-use aliases. Save 2-3 hours per week.
- π 40+ bundled workflows - One command runs multiple cargo operations
- β‘ Save 2-3 hours/week - Stop typing repetitive commands
- π Security-first - Built-in security auditing bundles
- π§ͺ Testing workflows - Complete test suites in one command
- π¦ Dependency management - Health checks and auto-fixes
- π― CI/CD simulation - Test locally before pushing
- π οΈ Fully customizable - Add your own workflow bundles
- π Well documented - Comprehensive guides and examples
# Clone the repository
git clone https://github.com/RustSandbox/rust-workflow-bundles.git
cd rust-workflow-bundles
# Run the install script
./install.sh
# Or manually source it
source rust-bundles.sh
echo "source $(pwd)/rust-bundles.sh" >> ~/.zshrc# Run a complete development cycle
cdevThat's it! π
cdev # Format + Clippy + Test + Build
cpre # Pre-commit checks
cci # Full CI simulation
cfixall # Auto-fix everything
chealth # Project health dashboard# Morning
chealth
# During development (auto-run tests on file changes)
cwatchdev
# Before committing
cpre
# Before pushing
cci
# Friday afternoon
cmaintenance# Fix and commit
cfixall && cpre && git commit -m "fix: issues"
# Before pushing
cci
# Before creating PR
cfixall && cpr
# Before release
cprelease && crelease patch
# Emergency fix
cnuclear && cpre
# Weekly maintenance
cmaintenance- Complete Command Reference - All 40+ commands explained
- Cheat Sheet - Quick reference guide
- Visual Cheat Sheet - ASCII art style guide
- Quick Reference - One-page reference
cdev- Complete development cyclecdevfast- Quick check + testcwatchdev- Watch mode (auto-run tests)
cpre- Pre-commit checkscstrict- Strict quality checkscquality- Complete quality gate (10+ checks)
csecaudit- Full security auditcsecquick- Quick security check
cdephealth- Complete dependency checkcdepfix- Auto-fix dependency issuescdeprefresh- Clean + update + rebuild
ctestall- Run all test typesctestcov- Tests with coverage reportctestfeatures- Test all feature combinations
cperfcheck- Full performance analysiscperfquick- Quick performance checkcbuildopt- Optimized build with analysis
cci- Simulate CI pipelineccifull- Full CI with securityccifast- Quick CI feedback
cprelease- Pre-release checklistcrelease- Create release (patch/minor/major)
cfixall- Auto-fix everythingcnuclear- Nuclear option (fix ALL)cmaintenance- Full weekly maintenancechealth- Project health dashboard
- Rust toolchain (rustup, cargo)
- Bash or Zsh shell
# Install cargo-binstall first (much faster)
cargo install cargo-binstall
# Essential tools
cargo binstall -y \
cargo-nextest \
cargo-audit \
cargo-geiger \
cargo-machete \
cargo-deny \
cargo-outdated \
watchexec-cliComplete installation guide β
| Workflow | Manual Time | Bundle Time | Saved |
|---|---|---|---|
| Pre-commit | 2 minutes | 30 seconds | 1.5 min |
| CI check | 5 minutes | 2 minutes | 3 min |
| Security audit | 3 minutes | 1 minute | 2 min |
| Quality gate | 15 minutes | 5 minutes | 10 min |
Average savings: 2-3 hours per week β°
Add your own workflow bundles:
# Add to ~/.zshrc after sourcing rust-bundles.sh
# Custom workflow
cmyflow() {
echo "π§ My Workflow" &&
cargo fmt &&
cargo clippy -- -D warnings &&
cargo test &&
echo "β
Done!"
}
# Database reset workflow
cdbr() {
cargo run --bin migrate reset &&
cargo run --bin migrate up &&
cargo run --bin seed
}cd ~/my-rust-project
chealth # Check project status
cwatchdev # Start watch mode
# Code away...
cpre # Before committing
git commit -m "feat: new feature"cfixall # Auto-fix issues
cci # Run CI simulation
git push # Push with confidencecprelease # Run pre-release checks
crelease patch # Create patch release
cargo publish # Publish to crates.ioContributions are welcome! See CONTRIBUTING.md for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-bundle) - Add your workflow bundle to
rust-bundles.sh - Update documentation
- Test thoroughly
- Commit your changes (
git commit -m 'Add amazing bundle') - Push to the branch (
git push origin feature/amazing-bundle) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This project was inspired by:
- Useful Cargo Plugin Cheat Sheet by timClicks - An excellent overview of cargo plugins that sparked the idea for bundled workflows
Amazing Rust tooling that powers these workflows:
- cargo - Official Rust package manager
- cargo-nextest - Next-generation test runner
- cargo-audit - Security vulnerability scanner
- cargo-geiger - Unsafe code detector
- cargo-deny - Dependency linting
- cargo-machete - Unused dependency finder
- watchexec - File watcher
- And many more!
If this project helped you, please consider:
- β Starring the repository
- π Reporting bugs
- π‘ Suggesting new workflow bundles
- π Improving documentation
- π Submitting pull requests
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π§ Email: ghalebi@gmail.com
- Add support for cargo workspaces
- Integration with popular CI/CD platforms
- Web dashboard for project health
- VS Code extension
- Plugin system for custom extensions
- Telemetry and analytics (opt-in)
- Commands: 40+ bundled workflows
- Time Saved: 2-3 hours/week average
- Rust Version: 1.70+
- Shell Support: Bash 4+, Zsh 5+
- cargo-make - Task runner
- just - Command runner
- cargo-watch - File watcher for cargo
Q: Do I need all the recommended tools? A: No! Bundles will gracefully fallback if tools are missing.
Q: Can I use this with existing projects? A: Yes! Works with any Rust project immediately.
Q: How do I update?
A: Run git pull in the repository directory.
Q: Can I customize the bundles?
A: Absolutely! Add your own in ~/.zshrc or modify rust-bundles.sh.
Q: Does this work on Windows? A: Best on Linux/macOS. Windows users should use WSL2.
See CHANGELOG.md for release history.
Made with β€οΈ for the Rust community