rust-deps-visualizer

actionbook/rust-skills · updated Apr 8, 2026

$npx skills add https://github.com/actionbook/rust-skills --skill rust-deps-visualizer
0 commentsdiscussion
summary

Generate ASCII art visualizations of your Rust project's dependency tree.

skill.md

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

When See
Crate selection advice m11-ecosystem
Workspace management m11-ecosystem
Feature flag decisions m11-ecosystem

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.753 reviews
  • Kofi Flores· Dec 24, 2024

    Registry listing for rust-deps-visualizer matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Harper Martin· Dec 20, 2024

    Keeps context tight: rust-deps-visualizer is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Michael Thompson· Dec 16, 2024

    I recommend rust-deps-visualizer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Emma Smith· Dec 12, 2024

    Useful defaults in rust-deps-visualizer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Olivia Johnson· Nov 15, 2024

    rust-deps-visualizer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Harper Sethi· Nov 11, 2024

    rust-deps-visualizer is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Michael Nasser· Nov 7, 2024

    Useful defaults in rust-deps-visualizer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Harper Flores· Nov 3, 2024

    I recommend rust-deps-visualizer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Arya Sanchez· Oct 26, 2024

    rust-deps-visualizer has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Harper Garcia· Oct 22, 2024

    rust-deps-visualizer reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 53

1 / 6