Expand description
Rust AST analysis for coupling detection.
This module converts source files and workspace metadata into ProjectMetrics,
giving the balance layer structural evidence about imports, type usage,
calls, visibility, and item-level dependencies.
Structs§
- Analyzed
File Result - Full result of analyzing a single Rust file.
- Coupling
Analyzer - AST visitor for coupling analysis
- Dependency
- Represents a detected dependency
- Item
Dependency - Detailed dependency at the item level (function, struct, etc.)
- Usage
Counts - Statistics about usage patterns
Enums§
- Analyzer
Error - Errors that can occur during analysis
- Dependency
Kind - Kind of dependency
- Item
DepType - Type of item-level dependency
- Item
Kind - Kind of source item
- Usage
Context - Context of how a dependency is used - determines Integration Strength
Functions§
- analyze_
project - Analyze an entire project (parallel version)
- analyze_
project_ parallel - Analyze a project using parallel processing with Rayon
- analyze_
project_ parallel_ with_ config - Analyze a project in parallel, honoring
[analysis].excludepatterns from config. - analyze_
rust_ file - Analyze one Rust file and return module metrics plus file-level dependencies.
- analyze_
rust_ file_ full - Analyze a Rust file and return full results including visibility
- analyze_
workspace - Analyze a workspace using cargo metadata for better accuracy
- analyze_
workspace_ with_ config - Analyze a workspace, honoring
[analysis].excludepatterns from config.