Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
zhanghandong avatar

Rust Deps Visualizer

  • 702 installs
  • 1.3k repo stars
  • Updated May 24, 2026
  • zhanghandong/rust-skills

This is a copy of rust-deps-visualizer by actionbook - installs and ranking accrue to the original listing.

rust-deps-visualizer is a Claude Code skill that renders a Rust project's Cargo dependency tree as readable ASCII art in the terminal for developers who need quick supply-chain visibility without external graph tools.

About

rust-deps-visualizer is a terminal-first Claude Code skill that turns a Rust crate's Cargo dependency graph into ASCII tree output directly from the agent session. Developers invoke `/rust-deps-visualizer` with optional `--depth N` (default depth 3) and `--features` to surface feature-flag branches alongside crate versions. The skill uses Bash, Read, and Glob to inspect the project and print hierarchical trees showing crates like tokio, serde, and nested transitive dependencies. Reach for rust-deps-visualizer when onboarding to an unfamiliar workspace, debugging version conflicts, or presenting dependency structure in code review without installing graphviz or web dashboards.

  • Generates clean ASCII dependency trees using cargo tree and cargo metadata
  • Supports --depth N to control visualization height (default 3)
  • Feature-aware mode that displays enabled feature flags per crate
  • Works with Chinese triggers including 依赖图 and 依赖可视化
  • Zero-install: runs via allowed Bash, Read, and Glob tools

Rust Deps Visualizer by the numbers

  • 702 all-time installs (skills.sh)
  • +9 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/zhanghandong/rust-skills --skill rust-deps-visualizer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs702
repo stars1.3k
Security audit3 / 3 scanners passed
Last updatedMay 24, 2026
Repositoryzhanghandong/rust-skills

How do you visualize Rust crate dependencies in the terminal?

Instantly see their Rust crate's dependency tree as readable ASCII art without leaving the terminal.

Who is it for?

Rust developers who want instant terminal-readable dependency trees during code review, onboarding, or supply-chain checks.

Skip if: Teams needing interactive HTML graphs, license compliance reports, or non-Rust package managers like npm or pip.

When should I use this skill?

A developer asks to show, visualize, or graph Rust dependencies, Cargo trees, or runs `/deps-viz`.

What you get

ASCII dependency tree with crate names, versions, depth limits, and optional feature-flag branches

  • ASCII dependency tree output

By the numbers

  • Default dependency tree depth is 3 levels via `--depth N`
  • Allowed tools: Bash, Read, and Glob

Files

SKILL.mdMarkdownGitHub ↗

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

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

WhenSee
Crate selection advicem11-ecosystem
Workspace managementm11-ecosystem
Feature flag decisionsm11-ecosystem

Related skills

How it compares

Choose rust-deps-visualizer over external graph tools when you need zero-install ASCII output inside an agent session.

FAQ

What flags does rust-deps-visualizer support?

rust-deps-visualizer accepts `--depth N` to cap tree depth (default 3) and `--features` to include Cargo feature-flag branches in the ASCII output.

How do you invoke rust-deps-visualizer?

rust-deps-visualizer runs via `/rust-deps-visualizer [--depth N] [--features]` and also triggers on phrases like dependency graph, show dependencies, and visualize deps.

Is Rust Deps Visualizer safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Pythonbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.