rmc-dependency-metric

Community

Rank Rust crates by Martin metrics.

Authormolaco
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you understand architectural coupling in a Rust workspace by ranking crates with Robert Martin-inspired instability and abstractness metrics, so you can quickly spot cores, workhorses, facades, and risky rigid components.

Core Features & Use Cases

  • Workspace-wide per-crate ranking: Computes efferent (fan-out), afferent (fan-in), instability, abstractness, and item counts across local crates.
  • Multiple sortable views: Sorts by instability, abstractness, afferent, efferent, or item_count to match different architecture questions.
  • Drill-down path: Uses the top-ranked crate to guide follow-up symbol-level edge inspection with per-crate crate_edges.

Quick Start

Build the workspace hypergraph, then run crate_dependency_metric with sort_by="afferent" and an appropriate top_n to get the architectural core ranking for your local crates.

Dependency Matrix

Required Modules

None required

Components

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-dependency-metric
Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-dependency-metric

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.