actionbook avatar

Rust Deps Visualizer

Turns your Rust project's dependency tree into readable ASCII art diagrams. Runs cargo tree under the hood and formats the output with box-drawing characters, showing version numbers and optionally feature flags. You can limit the depth to avoid sprawl or categorize dependencies by type (runtime, dev, build). The visual size bars are a nice touch if you care about compile times and binary bloat. Honestly most useful when onboarding someone to a project or debugging why a transitive dependency snuck in. Beats squinting at raw cargo tree output, though the categorization feature assumes you'll manually tag things or parse them heuristically.

skills.sh installs
3.2K
GitHub stars
1.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add actionbook/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/actionbook/rust-skills
Category
Rust
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Recommended

More Rust
1rtk-ai avatartdd-rustrtk-ai/rtkTDD workflow for RTK filter development. Red-Green-Refactor with Rust idioms. Real fixtures, token savings assertions, snapshot tests with insta. Auto-triggers 1.5Kskills.sh installs
2windmill-labs avatarrust-backendwindmill-labs/windmillRust coding guidelines for the Windmill backend. MUST use when writing or modifying Rust code in the backend directory.1.1Kskills.sh installs
3aradotso avatarmicrosoft-rust-trainingaradotso/trending-skillsmicrosoft rust training837skills.sh installs
4zhanghandong avatarrust-routerzhanghandong/rust-skillsrust router698skills.sh installs
5pproenca avatarrust-refactorpproenca/dot-skillsDecision frameworks for Rust refactoring, simplification, module decomposition, and incremental migration. Use this skill when simplifying Rust code, splitting 322skills.sh installs
6getcargohq avatarcargo-connectiongetcargohq/cargo-skillsManage connectors and integrations using the Cargo CLI. Use when the user wants to list, create, update, or remove connectors, discover available integrations, 11.8Kskills.sh installs