Skip to main content

Module analyzer

Module analyzer 

Source
Expand description

AST analysis for coupling detection

Uses syn to parse Rust source code and detect coupling patterns. Optionally uses cargo metadata for accurate workspace analysis. Supports parallel processing via Rayon for large projects.

Structs§

AnalyzedFileResult
Analyze a single Rust file 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_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.