🎯

rust-deps-visualizer

🎯Skill

from goooice/rust-skills

VibeIndex|
What it does

Generates ASCII art visualizations of Rust project dependencies, revealing tree structure, versions, and optional feature flags.

πŸ“¦

Part of

goooice/rust-skills(35 items)

rust-deps-visualizer

Installation

Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add ZhangHanDong/rust-skills
Install PluginInstall plugin from marketplace
/plugin install rust-skills@rust-skills
Quick InstallInstall with npx
npx skills add ZhangHanDong/rust-skills
git cloneClone repository
git clone https://github.com/ZhangHanDong/rust-skills.git
πŸ“– Extracted from docs: goooice/rust-skills
4Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

"Visualize Rust project dependencies as ASCII art. Triggers on: /deps-viz, dependency graph, show dependencies, visualize deps, 依衖图, δΎθ΅–ε―θ§†εŒ–, ζ˜Ύη€ΊδΎθ΅–"

Overview

# Rust Dependencies Visualizer

Generate ASCII art visualizations of your Rust project's dependency tree.

Usage

```

/rust-deps-visualizer [--depth N] [--features]

```

Options:

  • --depth N: Limit tree depth (default: 3)
  • --features: Show feature flags

Output Format

Simple Tree (Default)

```

my-project v0.1.0

β”œβ”€β”€ tokio v1.49.0

β”‚ β”œβ”€β”€ pin-project-lite v0.2.x

β”‚ └── bytes v1.x

β”œβ”€β”€ serde v1.0.x

β”‚ └── serde_derive v1.0.x

└── anyhow v1.x

```

Feature-Aware Tree

```

my-project v0.1.0

β”œβ”€β”€ tokio v1.49.0 [rt, rt-multi-thread, macros, fs, io-util]

β”‚ β”œβ”€β”€ pin-project-lite v0.2.x

β”‚ └── bytes v1.x

β”œβ”€β”€ serde v1.0.x [derive]

β”‚ └── serde_derive v1.0.x (proc-macro)

└── anyhow v1.x [std]

```

Implementation

Step 1: Parse Cargo.toml for direct dependencies

```bash

cargo metadata --format-version=1 --no-deps 2>/dev/null

```

Step 2: Get full dependency tree

```bash

cargo tree --depth=${DEPTH:-3} ${FEATURES:+--features} 2>/dev/null

```

Step 3: Format as ASCII art tree

Use these box-drawing characters:

  • β”œβ”€β”€ for middle items
  • └── for last items
  • β”‚ for continuation lines

Visual Enhancements

Dependency Categories

```

my-project v0.1.0

β”‚

β”œβ”€[Runtime]─────────────────────

β”‚ β”œβ”€β”€ tokio v1.49.0

β”‚ └── async-trait v0.1.x

β”‚

β”œβ”€[Serialization]───────────────

β”‚ β”œβ”€β”€ serde v1.0.x

β”‚ └── serde_json v1.x

β”‚

└─[Development]─────────────────

β”œβ”€β”€ criterion v0.5.x

└── proptest v1.x

```

Size Visualization (Optional)

```

my-project v0.1.0

β”œβ”€β”€ tokio v1.49.0 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 2.1 MB

β”œβ”€β”€ serde v1.0.x β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 1.2 MB

β”œβ”€β”€ regex v1.x β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 890 KB

└── anyhow v1.x β–ˆβ–ˆ 120 KB

─────────────────

Total: 4.3 MB

```

Workflow

  1. Check for Cargo.toml in current directory
  2. Run cargo tree with specified options
  3. Parse output and generate ASCII visualization
  4. Optionally categorize by purpose (runtime, dev, build)

Related Skills

| When | See |

|------|-----|

| Crate selection advice | m11-ecosystem |

| Workspace management | m11-ecosystem |

| Feature flag decisions | m11-ecosystem |

More from this repository10

🎯
m10-performance🎯Skill

Optimizes code performance by identifying bottlenecks, measuring impact, and guiding strategic improvements across algorithm, data structure, and memory efficiency.

🎯
m14-mental-model🎯Skill

Applies the M14 mental model framework to enhance decision-making and strategic thinking through structured cognitive analysis.

🎯
m04-zero-cost🎯Skill

Guides developers in choosing zero-cost abstractions by analyzing type system constraints and performance trade-offs in Rust generics and traits.

🎯
meta-cognition-parallel🎯Skill

Performs parallel three-layer meta-cognitive analysis by forking subagents to simultaneously analyze language mechanics, design choices, and domain constraints, then synthesizing results.

🎯
unsafe-checker🎯Skill

Identifies and reviews unsafe Rust code patterns, FFI risks, and potential memory unsafety in Rust projects.

🎯
rust-skill-creator🎯Skill

Dynamically generates Claude skills for Rust crates, standard library modules, and documentation by extracting and processing technical details from specified URLs.

🎯
coding-guidelines🎯Skill

Provides comprehensive Rust coding guidelines covering naming conventions, best practices, error handling, memory management, concurrency, and code style recommendations.

🎯
rust-refactor-helper🎯Skill

Performs safe Rust refactoring by analyzing symbol references, checking conflicts, and applying changes across project files using LSP.

🎯
m03-mutability🎯Skill

Diagnoses and guides resolution of Rust mutability and borrowing conflicts by analyzing ownership, mutation patterns, and thread-safety requirements.

🎯
m05-type-driven🎯Skill

Explores and demonstrates type-driven development techniques in Rust, showcasing advanced type system features and pattern matching strategies.