🎯

rust-deps-visualizer

🎯Skill

from actionbook/rust-skills

VibeIndex|
What it does

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

πŸ“¦

Part of

actionbook/rust-skills(35 items)

rust-deps-visualizer

Installation

Quick InstallInstall with npx
npx skills add ZhangHanDong/rust-skills
CargoRun with Cargo (Rust)
cargo install cowork
git cloneClone repository
git clone https://github.com/ZhangHanDong/rust-skills.git
Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add ZhangHanDong/rust-skills
πŸ“– Extracted from docs: actionbook/rust-skills
14Installs
-
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

πŸͺ
actionbook-rust-skillsπŸͺMarketplace

Comprehensive Rust development assistant with meta-question routing, coding guidelines, version queries, and ecosystem support

🎯
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, dependencies, and potential impacts using Language Server Protocol (LSP) operations.

🎯
m09-domain🎯Skill

Guides domain modeling in Rust by helping identify entities, value objects, aggregates, and their ownership patterns with domain-driven design principles.

🎯
m05-type-driven🎯Skill

Enforces compile-time type safety by preventing invalid states through type-level design techniques like newtypes, type states, and phantom types.

🎯
rust-learner🎯Skill

Retrieves and provides comprehensive Rust and crate information, including versions, features, documentation, and changelogs from authoritative sources.

🎯
m02-resource🎯Skill

Guides developers in selecting the right smart pointer and resource management strategy based on ownership, thread safety, and design constraints.

🎯
m11-ecosystem🎯Skill

Guides Rust developers in selecting, integrating, and managing ecosystem dependencies with best practices and strategic decision-making.

🎯
rust-trait-explorer🎯Skill

Explores Rust trait implementations, revealing which types implement specific traits and their implementation details using LSP.

🎯
rust-call-graph🎯Skill

Generates and visualizes Rust function call graphs using LSP, revealing function relationships and call hierarchies.