zhanghandong avatar

Rust Deps Visualizer

Generates ASCII art dependency trees for Rust projects by wrapping cargo tree with visualization options. Run it with --depth to control how deep the tree goes and --features to see which feature flags are active on each crate. The output uses box-drawing characters for a clean terminal-friendly display. What makes this worth using is the optional categorization view that groups dependencies by purpose (runtime, dev, build) and the size visualization that shows how much each dependency contributes to your compile times. Good for auditing what's actually in your dependency graph or explaining your project's structure to teammates.

skills.sh installs
684
GitHub stars
1.3K
last updated
Jul 14, 2026

Install

$ npx -y skills add zhanghandong/rust-skills --skill rust-deps-visualizer --agent claude-code

Installs into .claude/skills of the current project.

Files

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

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

Step 2: Get full dependency tree

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

Sponsors

Details

Repository
github.com/zhanghandong/rust-skills
Category
Rust

More from zhanghandong/rust-skills

All 34

Recommended

More Rust
1zhanghandong avatarrust-skill-creatorzhanghandong/rust-skillsrust skill creator670skills.sh installs
2manutej avataraxum-web-frameworkmanutej/luxor-claude-marketplaceComplete guide for Axum web framework including routing, extractors, middleware, state management, error handling, and production deployment659skills.sh installs
3sickn33 avatarrust-prosickn33/antigravity-awesome-skillsrust pro458skills.sh installs
4sickn33 avatarsystems-programming-rust-projectsickn33/antigravity-awesome-skillssystems programming rust project300skills.sh installs
5martinholovsky avatarrustmartinholovsky/claude-skills-generatorSystems programming expertise for Tauri desktop application backend development with memory safety and performance optimization266skills.sh installs
6pproenca avatarrust-implementpproenca/dot-skillsWrite production-grade Rust code using a multi-pass approach. Design types first, then implement, then simplify, then verify with automated lint. Use this skill246skills.sh installs