From rust-skills
Visualizes Rust project dependencies as ASCII art trees via cargo tree, supporting depth limits, feature flags, categories, and optional size bars. Ideal for dependency graph inspection.
npx claudepluginhub actionbook/rust-skills --plugin rust-skillsThis skill is limited to using the following tools:
Generate ASCII art visualizations of your Rust project's dependency tree.
Visualizes Rust function call graphs using LSP call hierarchy. Shows callers, callees, or bidirectional with depth and direction options. Triggers on /rust-call-graph and call-related queries.
Assists with Cargo.toml configuration, crate dependency management, project initialization, builds, tests, benchmarks, docs, troubleshooting, and best practices for Rust projects.
Detects unused dependencies in Rust projects using cargo-machete to clean Cargo.toml files and optimize build times. Use for auditing dependencies, removing bloat, or verifying CI deps.
Share bugs, ideas, or general feedback.
Generate ASCII art visualizations of your Rust project's dependency tree.
/rust-deps-visualizer [--depth N] [--features]
Options:
--depth N: Limit tree depth (default: 3)--features: Show feature flagsmy-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
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]
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 linesmy-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
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
cargo tree with specified options| When | See |
|---|---|
| Crate selection advice | m11-ecosystem |
| Workspace management | m11-ecosystem |
| Feature flag decisions | m11-ecosystem |