Cargo Mate
A Rust development companion that enhances cargo with intelligent workflows, state management, performance optimization, and comprehensive project monitoring. W.I.P. UNDER DEVELOPMENT!
Table of Contents
- Quick Start
- Installation
- Command Reference
- Version Commands
- View Commands
- Log Commands
- Journey Commands
- Anchor Commands
- Tide Commands
- Deps Commands
- LIBerate Commands
- Tree Commands
- Stub Commands
- Bin Commands
- Scrub Commands
- SCAT Commands
- Strip Commands
- Sweep Commands
- Map Commands
- Probe Commands
- Mutiny Commands
- Config Commands
- Optimize Commands
- Checklist Commands
- WTF Commands
- Tool Commands
- DDR Commands
- General Commands
- Project Configuration (.cg)
- Global Configuration (~/.shipwreck/config.toml)
- Examples
- License
Version Commands
View Commands
Captain's Log Commands (Natural language build notes with automatic tagging and search.)
Journey Commands
Anchor Commands
Tide Commands
Deps Commands
# What it does:
# - Scans all Rust source files (src/**/*.rs and build.rs)
# - Extracts use statements and extern crate declarations
# - Parses Cargo.toml to get declared dependencies
# - Compares used crates vs declared dependencies
# - Queries crates.io to verify missing dependencies exist
# - Reports unused declared dependencies and missing used dependencies
LIBerate Commands
# What it does:
# - Recursively scans project directory for all .rs files
# - Extracts all public items (structs, enums, functions, constants, types, traits, statics, unions, impl blocks)
# - Generates module declarations for each file
# - Creates pub use statements for all public items
# - Organizes exports by category with helpful comments
# - Handles errors gracefully with informative warnings
Tree Commands
Stub Commands
Bin Commands
# What it does:
# - Runs --help, -h, or help to discover commands
# - Parses help output to extract available commands
# - For each command, gets its help to extract flags
# - Tests each command with each flag combination
# - Collects all outputs, exit codes, and errors
# - Generates comprehensive markdown report
Scrub Commands
SCAT Commands (Source Code Obfuscation Tool) STILL UNDER DEVELOPMENT - SCAT AT YOUR OWN RISK
# Examples:
Strip Commands (Code Cleaning & Optimization) - SOMETIMES TEASE HURTS
# Examples:
Sweep Commands (AI Debug Statement Cleanup) -- CLEAN UP
# Sweep Options:
# Examples:
Map Commands -- WHERE AM I
Probe Commands (Intelligent Probe Suite Management)
# Flaky Probe Detection
# Impact Analysis
# Coverage Analysis
# Performance Profiling
# Tag-Based Filtering
# CI Configuration Generation
# Docker Environment Management
&& &&
# Failure Reproduction
# Randomized Execution Order
# Documentation Generation
Mutiny Commands -- THIS IS STILL DUMB
Config Commands -- CONFIGURE YOUR SHIP
Optimize Commands -- OPTIMIZE CM
Checklist Commands -- STAY FOCUSED AND TOUCH GRASS
WTF Commands (CargoMate AI - Pro only) -- ONLY WORKS 25% OF THE TIME
# Ollama Integration
Tool Commands -- TOOLS ARE JUST HELPER FILES / BASE FILES FOR YOU TO USE IF WANTED
# Available Tools:
# Compare benchmark results between commits
# Audit dependencies for security and license issues
|| # Generate test boilerplate from Rust function signatures
DDR Commands (Dock Dock Rust - Parallel Build Orchestration) π§ UNDER DEVELOPMENT
# DDR Build Options:
# Examples:
General Commands
Project Configuration (.cg)
[]
= "my-project"
= "build"
= true
[]
= true
= "patch"
[]
= "build --release"
= "test --all"
Global Configuration (~/.shipwreck/config.toml)
[]
= true
= false
[]
= 4
= true
Some Examples
Development Workflow
# Save current state before major changes
# Record your development workflow
# Ctrl+D to stop recording
# Replay the workflow anytime
Performance Optimization
# Check optimization recommendations
# Apply balanced optimizations
# Monitor build performance
Version Management
# Initialize with semantic versioning
# Versions auto-increment on builds
# Manual version bump for releases
π’ Cargo Mate
- π’ Your project is a ship
- β Anchors save your position
- π Tide charts track the flow
- πΊοΈ Maps show the territory
- π΄ββ οΈ Mutiny overrides the captain
- π Captain's log records the journey
- π’ Auto-versioning keeps your ship on course
- π Build optimization gives you the wind in your sails
π License
This project is licensed
For more information, visit: cargo.do/license
π Installation : CARGO INSTALL CARGO-MATE
Option 1: Quick & Dirty Installer (Recommended - Works Everywhere... in Theory)
|
β No compilation needed, auto-detects platform, handles all dependencies
Option 2: Control & Freaky (Direct Download - Choose Your Platform and Speed)
# Linux x86_64 (glibc)
# Linux x86_64 (musl)
# Linux ARM64 (glibc)
# Linux ARM64 (musl)
# macOS Intel (x86_64)
# macOS Apple Silicon (ARM64)
# Windows x86_64
# Run install.ps1 in PowerShell as Administrator
# Windows i686
# Run install.ps1 in PowerShell as Administrator
# Universal ALL PLATFORMS AVAILABLE (most of the time contains all)
### Option 3: Natural & Confused (Requires Build Tools)
β οΈ Note: 20+ minute build time. Requires C compiler/linker. If you get "linker cc not found", use Option 1 or 2 instead.
Troubleshooting
- "linker cc not found": Install build-essential first, or use the curl/wget installers
- "GLIBC_2.32 not found": Use the universal installer (Option 1) which auto-selects compatible version
- Behind firewall: Use Option 2 to download manually
No more shipwrecks in the sea of cargo errors!