What problem does it solve?
It helps you understand which Rust enum variants actually matter in practice by listing variants and computing where each variant is used across the codebase.
Core Features & Use Cases
- Enum variant listing: Pulls variants from a specific enum with qualified names and source locations, so you can audit the variant set without manual parsing.
- Per-variant fan-in (who uses it): Identifies all construction sites and match/pattern uses for each variant, highlighting the load-bearing states.
- Convergence detection across enums: Clusters duplicated/identical variant models using semantic overlaps to spot convergent enum design.
- Attribute-aware dead-state checks: Supports attribute auditing (for example, identifying
#[non_exhaustive]) so “unused” findings are interpreted correctly.
Quick Start
Ask the MCP server to build the hypergraph and index the codebase, then run the enum_variants step for your target enum and follow up with who_uses_summary for each variant to see which states carry usage.