rmc-enum-variants
CommunityAudit enum variants and their real usage.
Software Engineering#static analysis#refactoring#rust#call graph#enum#code auditing#workspace indexing
Authormolaco
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rmc-enum-variants Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-enum-variants Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.