Overview
Proxy for Cargo (Rust build tool) with token-optimized output. Shows only relevant build information and test failures.Syntax
Subcommands
rtk cargo build
Build with minimal output.flag
Build optimized artifact
rtk cargo test
Run tests, show only failures.separator
Pass additional arguments to test binary
rtk cargo clippy
Lint with grouped warnings.rtk cargo check
Type-check without building.rtk cargo install
Install binary, show progress summary.Examples
Build Release Binary
Run Tests with Nocapture
Lint All Targets
Features
- Failures only: For tests, only shows failed cases with context
- Grouped linting: Clippy warnings grouped by file and rule
- Progress stripping: Removes compilation progress bars
- Error context: Shows file location and relevant code snippet
Implementation
Source:src/cargo_cmd.rs
Optimizations
- Strips “Compiling (N/M)” progress lines
- Removes dependency compilation messages
- Groups similar warnings/errors
- Formats durations compactly (“3.2s” vs “3.234567s”)
