
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-codeInstalls 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- Rust Skill Creator670
- Domain Web648
- Meta Cognition Parallel635
- Rust Daily635
- Domain Embedded625
- Domain Cloud Native596
- Domain Fintech581
- Domain Ml573
- Domain Iot568
- M15 Anti Pattern5.6K
- Coding Guidelines1.2K
- M10 Performance895
- M07 Concurrency844
- M06 Error Handling827
- Rust Refactor Helper821
- M01 Ownership809
- M04 Zero Cost789
- M05 Type Driven786
- M02 Resource783
- M03 Mutability773
- M12 Lifecycle764
- M14 Mental Model751
- M09 Domain750
- M11 Ecosystem747