raz-cli-0.2.4 is not a library.
raz-cli
Universal command runner for Rust - Run any Rust file from anywhere with cursor-aware test targeting and override persistence.
Installation
Quick Start
# Run any Rust file
# Run with cursor position for test targeting
# Run with overrides
# Save overrides for reuse
Features
- 🎯 Stateless Operation: Works from any directory - just provide a file path
- 📍 Cursor-Aware: Smart test detection based on cursor position
- 💾 Override Persistence: Save command overrides per function automatically
- ⚡ Zero Configuration: No setup required - works instantly
- 🚀 Universal Support: Handles all Rust execution patterns seamlessly
Usage Examples
Basic Execution
# Run main function
# Run specific test at line 25
# Run integration test
Smart Override Parsing
# Environment variables (automatically detected)
# Command options (passed to cargo/framework tools)
# Test arguments (passed after -- to test runner)
# Combined example
Override Persistence
# Save command configuration for a specific test function
# Future runs automatically apply saved settings
Supported Patterns
- Cargo Workspaces: Multi-package projects with proper member detection
- Cargo Packages: Single package projects with bin/lib/test detection
- Cargo Scripts: Files with
#!/usr/bin/env -S cargo +nightly -Zscript
- Single Files: Standalone Rust files compiled with rustc
- Build Scripts: Special handling for build.rs files
Override Management
RAZ provides comprehensive override management with deferred save - overrides are only saved after successful execution.
Basic Commands
# Save override (only saved after success)
# List and inspect
# Backup and recovery
# Debug and management
# Migration from legacy format
Template Commands
# Initialize project with template
# Template management (planned features)
Framework Integration
RAZ automatically detects and provides framework-specific commands:
# Leptos projects
# Tauri projects
# Bevy projects
Documentation
For complete documentation, examples, and VS Code integration, visit the main RAZ repository.
Library Usage
For embedding RAZ functionality in your own applications, see the raz-core
crate.