# cargo-depgraph を Homebrew, Nix, pacman でインストール

cargo-depgraph のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:cargo-depgraph
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cargo-depgraph
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-depgraph
```

  証拠: nixpkgs package indexes: pkgs/by-name/ca/cargo-depgraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-depgraph
```

  証拠: Arch Linux sync databases: cargo-depgraph from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:cargo-depgraph
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.6.0
- **ソース概要:** Creates dependency graphs for cargo projects
- **ホームページ:** <https://sr.ht/~jplatte/cargo-depgraph/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cargo-depgraph (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.6.0
## プロジェクトの歴史と使われ方

cargo-depgraph is a Cargo subcommand for turning a Rust package's Cargo metadata into Graphviz dependency graphs. It fills the small but durable need to see feature, target, dev, build, optional, and transitive dependency structure as an image or DOT graph.

### プロジェクトの歴史

The crate was published on crates.io in July 2020 with the description that it creates dependency graphs for Cargo projects using cargo metadata and Graphviz. Its official repository metadata has since appeared under jplatte's Codeberg account, while crates.io still records the older SourceHut repository URL, suggesting a repository-hosting move rather than a change in purpose.

The README's examples focus on piping `cargo depgraph` into Graphviz's `dot`, and the documented output legend shows the project grew around Cargo-specific semantics rather than generic graph rendering.

### 採用の歴史

Adoption is niche but broad enough for distribution packaging: the supplied package-manager facts list Homebrew, Nix, and Arch Linux packages, and crates.io records tens of thousands of downloads. That puts cargo-depgraph in the class of Rust ecosystem utilities that are not core workflow tools, but are useful enough to be packaged by Unix-oriented distributions.

### 使われ方

Users run `cargo depgraph [options] | dot -Tpng > graph.png` from a Cargo project, with Graphviz installed locally or another DOT renderer available. Common options include `--all-deps` and `--all-deps --dedup-transitive-deps` for fuller dependency views.

### パッケージ好きにとっての重要性

Package nerds care about cargo-depgraph because it exposes Cargo resolver state visually: optional dependencies, target-specific dependencies, build dependencies, dev dependencies, and transitive optional edges become inspectable without hand-reading `Cargo.lock` and `Cargo.toml` trees.

It is also a good example of the Rust community's habit of building small Cargo subcommands around `cargo metadata`, then letting traditional Unix tools such as Graphviz handle the final representation.

### タイムライン

- 2020: cargo-depgraph crate first published on crates.io.
- 2023: crates.io metadata for cargo-depgraph last updated at version 1.6.0.
- 2026: Codeberg repository metadata lists jplatte/cargo-depgraph as an active repository.

### Related projects

- Cargo metadata is the data source that lets cargo-depgraph inspect Rust package graphs.
- Graphviz is the rendering toolchain used by the README examples.
- Other Cargo inspection tools, such as cargo tree, overlap in dependency exploration but present the graph as text rather than DOT output.

### ソース

- <https://codeberg.org/api/v1/repos/jplatte/cargo-depgraph>
- <https://codeberg.org/jplatte/cargo-depgraph#readme>
- <https://crates.io/api/v1/crates/cargo-depgraph>
- input.source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - cargo-depgraph: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-depgraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-depgraph - 1.6.0-3: normalized package name match | Arch Linux sync databases: cargo-depgraph from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Creates dependency graphs for cargo projects using cargo metadata and graphviz | https://github.com/jplatte/cargo-depgraph


## Combined YAML source

View the package source record on GitHub. [combined/cargo-depgraph.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-depgraph.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
