Crate raz_core

Source
Expand description

§RAZ Core Library

Universal command generator for Rust projects across multiple IDEs.

§Overview

RAZ (Rust Action Zapper) provides intelligent, context-aware command generation by analyzing project structure, dependencies, and cursor position to suggest relevant commands for development workflows.

§Architecture

  • Context Layer: Analyzes project structure and file context
  • Provider Layer: Framework-specific command generators
  • Filter Layer: Rule engine for command filtering and prioritization
  • Command Layer: Command execution and management
  • Config Layer: Configuration management with hierarchical overrides

Re-exports§

pub use ast::RustAnalyzer;
pub use ast::SymbolContext as AstSymbolContext;
pub use file_detection::EntryPoint;
pub use file_detection::EntryPointType;
pub use file_detection::ExecutionCapabilities;
pub use file_detection::FileDetector;
pub use file_detection::FileExecutionContext;
pub use file_detection::FileRole;
pub use file_detection::RustProjectType;
pub use file_detection::SingleFileType;
pub use cargo_options::*;
pub use commands::*;
pub use context::*;
pub use dioxus_validation::*;
pub use error::*;
pub use filters::*;
pub use framework_detection::*;
pub use providers::*;
pub use universal_command_generator::*;

Modules§

ast
Abstract Syntax Tree parsing and analysis using tree-sitter
browser
Cross-platform browser launching utilities
cargo_options
Cargo command options catalog
cargo_options_catalog
Complete catalog of all cargo subcommand options
commands
Command structures and execution logic
context
Context analysis and project structure detection
dioxus_validation
Comprehensive Framework CLI validation system
error
Error types for RAZ Core
file_detection
File detection and project type analysis
filters
Command filtering and prioritization engine
framework_detection
Framework detection with precise pattern matching and scoring
providers
Command providers for different frameworks and tools
rustc_options
Rustc option validation and cargo-to-rustc translation
test_commands
Enhanced test command generation with precise targeting
tree_sitter_test_detector
Tree-sitter based test detection for accurate AST parsing
universal_command_generator
Universal command generator for all Rust execution patterns

Structs§

CommandConfigBuilder
CommandOverride
ConfigBuilder
ConfigManager
Adapter to maintain compatibility with the old ConfigManager interface
ConfigTemplates
ConfigValidator
EffectiveConfig
GlobalConfig
OverrideBuilder
RazCore
Main entry point for the RAZ command generation system
WorkspaceConfig

Enums§

ConfigError
OverrideMode