Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, pacman 安装 cargo-depgraph

查看 cargo-depgraph 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cargo-depgraph

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#cargo-depgraph

nixpkgs package indexes · pkgs/by-name/ca/cargo-depgraph/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S cargo-depgraph

Arch Linux sync databases · cargo-depgraph · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Creates dependency graphs for cargo projects

命令和别名

  • cargo-depgraph

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 10 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cargo-depgraphcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.6.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://sr.ht/~jplatte/cargo-depgraph/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://sr.ht/~jplatte/cargo-depgraph/none 置信度

安装元数据

软件包元数据

软件包键brew:cargo-depgraph
版本1.6.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cargo-depgraph
主页https://sr.ht/~jplatte/cargo-depgraph/
仓库https://codeberg.org/jplatte/cargo-depgraph
上游文档https://codeberg.org/jplatte/cargo-depgraph#readme
许可证GPL-3.0-or-later
源码归档https://git.sr.ht/~jplatte/cargo-depgraph/archive/v1.6.0.tar.gz
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-depgraph
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

cargo-depgraph

nix profile install nixpkgs#cargo-depgraph
  • normalized package name match
  • 匹配方式:Cargo Depgraph
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-depgraph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

cargo-depgraph 1.6.0-3

Creates dependency graphs for cargo projects using cargo metadata and graphviz

https://github.com/jplatte/cargo-depgraph

sudo pacman -S cargo-depgraph
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Cargo Depgraph
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-depgraph from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment