rust-deps-visualizer_skill

This skill visualizes Rust project dependencies as ASCII art, helping you quickly understand structure, depth, and feature-driven relationships.
  • Shell

565

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill zhanghandong/rust-skills --skill rust-deps-visualizer

  • SKILL.md2.7 KB

Overview

This skill generates ASCII-art visualizations of a Rust project's dependency graph from local Cargo metadata. It runs cargo tree (and optionally inspects feature flags) to produce readable, navigable trees, category sections, and optional size bars. The output helps developers quickly understand dependency depth, features, and categories without leaving the terminal.

How this skill works

The skill checks for Cargo.toml in the current directory, runs cargo metadata and cargo tree to collect dependency information, and parses that output into an ASCII tree. Options allow limiting depth and showing feature flags; the formatter applies box-drawing characters and can group dependencies by purpose or annotate sizes when available.

When to use it

  • Quickly inspect a project's dependency tree in the terminal
  • Audit feature flags and transitive crates before a release
  • Identify deep or unexpected transitive dependencies
  • Visualize dev vs runtime vs build dependencies
  • Estimate dependency footprint when size data is available

Best practices

  • Run from the crate root where Cargo.toml is present
  • Limit --depth to 2–4 for large dependency graphs to avoid noise
  • Use --features when you need feature-aware dependency visibility
  • Combine visual output with cargo tree filters (e.g., --all-features) for targeted inspection
  • Use categories (runtime/dev/build) to focus reviews and PR discussions

Example use cases

  • Run /rust-deps-visualizer --depth 3 to produce a concise project tree before a dependency audit
  • Enable feature-aware view to confirm which optional features pull in heavy transitive crates
  • Group dependencies into Runtime, Serialization, and Development to present in a code review
  • Generate size-annotated output to find the largest crates affecting binary size

FAQ

Install it via cargo install cargo-tree or use a recent Rust toolchain that includes cargo-tree; the skill relies on cargo tree output.

How do I show feature flags?

Invoke the skill with the --features flag; it will include feature lists next to crates when available.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
rust-deps-visualizer skill by zhanghandong/rust-skills | VeilStrat