# rust-deps-visualizer

Draws your Rust project's dependency tree as ASCII art. Handy when you need to see what a Cargo.toml actually pulls in.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3000 installs · ★ 1545
- Author: actionbook
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/actionbook/rust-skills/tree/HEAD/skills/rust-deps-visualizer/SKILL.md
- Updated: 2026-08-23
- HTML: https://affpapa.org/en/nevibecode/skills/rust-deps-visualizer

## What it does

The skill reads `Cargo.toml`, runs `cargo tree`, and formats the result with `├──` and `└──` characters. Tree depth defaults to 3 and can be changed with `--depth N`. Add `--features` to list the enabled feature flags next to each crate.

Three steps sit behind it: parse the manifest with `cargo metadata`, pull the full tree with `cargo tree`, then format. There is a category view that groups crates into runtime, serialization and development, plus an optional size bar chart. The skill uses `Bash`, `Read` and `Glob`, so run it from the directory that holds `Cargo.toml`.

No `cargo` binary, or the wrong working directory, and you get nothing back. For crate selection and workspace questions the author points to a separate skill, `m11-ecosystem`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/rust-deps-visualizer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/rust-deps-visualizer/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/rust-deps-visualizer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/rust-deps-visualizer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install actionbook/rust-skills rust-deps-visualizer
```

2. **Manually: put the files in place**
- File: `.github/skills/rust-deps-visualizer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/actionbook/rust-skills --path skills/rust-deps-visualizer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/rust-deps-visualizer/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill rust-deps-visualizer -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/actionbook/rust-skills/tree/HEAD/skills/rust-deps-visualizer/SKILL.md

## When to use it
- see the full dependency tree of a Rust project
- cap output depth when a project has many crates
- check which feature flags a dependency enables
- group dependencies into runtime, serialization and development
- estimate crate sizes in the tree

## Example prompts
- show me the dependency tree for this project
- /rust-deps-visualizer --depth 2
- /rust-deps-visualizer --features

## Similar
- [rust](https://affpapa.org/en/nevibecode/skills/rust.md) — skill · 922 installs
- [rust-refactor](https://affpapa.org/en/nevibecode/skills/rust-refactor.md) — skill · 314 installs
- [cargo-workflows](https://affpapa.org/en/nevibecode/skills/cargo-workflows.md) — skill · 558 installs
- [rust-best-practices](https://affpapa.org/en/nevibecode/skills/rust-best-practices.md) — skill · 21100 installs
- [rust-engineer](https://affpapa.org/en/nevibecode/skills/rust-engineer.md) — skill · 6300 installs
- [rust-profiling](https://affpapa.org/en/nevibecode/skills/rust-profiling.md) — skill · 586 installs

From the same set: [actionbook/rust-skills](https://affpapa.org/en/nevibecode/by/actionbook/rust-skills.md) — 35 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
