actionbook avatar

Rust Deps Visualizer

Visualize Rust project dependency trees as ASCII art, with optional feature flags and size estimates.

skills.sh installs
3.3K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers generating a dependency tree from cargo tree, limited by --depth N (default 3)
  • Includes an optional --features mode that annotates each crate with its enabled feature flags
  • Groups dependencies into Runtime, Serialization, and Development categories, with optional size bars
  • Designed for Rust developers reviewing a project's dependency graph before adding or pruning crates

Install

$ npx -y skills add actionbook/rust-skills --skill rust-deps-visualizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/actionbook/rust-skills
Categories
Rust, CLI & Terminal
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Similar to Rust Deps Visualizer

More Rust