Skip to main content

Module analyzer

Module analyzer 

Source
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§

AnalyzedFileResult
Full result of analyzing a single Rust file.
CouplingAnalyzer
AST visitor for coupling analysis
Dependency
Represents a detected dependency
ItemDependency
Detailed dependency at the item level (function, struct, etc.)
UsageCounts
Statistics about usage patterns

Enums§

AnalyzerError
Errors that can occur during analysis
DependencyKind
Kind of dependency
ItemDepType
Type of item-level dependency
ItemKind
Kind of source item
UsageContext
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].exclude patterns 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].exclude patterns from config.