https://github.com/kxxt/cargo-visualize
Know your dependencies via interactive cargo dependency graph visualization. An opinionated fork of cargo-depgraph that focuses on interactivity.
https://github.com/kxxt/cargo-visualize
cargo cargo-plugin cargo-subcommand crates-io dependency-graph graph graph-visualization rust-crate rust-lang sbom supply-chain supply-chain-management visualization
Last synced: 7 months ago
JSON representation
Know your dependencies via interactive cargo dependency graph visualization. An opinionated fork of cargo-depgraph that focuses on interactivity.
- Host: GitHub
- URL: https://github.com/kxxt/cargo-visualize
- Owner: kxxt
- License: gpl-3.0
- Created: 2025-03-08T13:20:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T04:36:30.000Z (7 months ago)
- Last Synced: 2025-03-13T05:26:44.850Z (7 months ago)
- Topics: cargo, cargo-plugin, cargo-subcommand, crates-io, dependency-graph, graph, graph-visualization, rust-crate, rust-lang, sbom, supply-chain, supply-chain-management, visualization
- Language: Rust
- Homepage:
- Size: 3.76 MB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# cargo-visualize
Know your dependencies via interactive cargo dependency graph visualization.
An opinionated fork of [cargo-depgraph](https://github.com/jplatte/cargo-depgraph)
that focuses on interactivity.
> 🚧 **Under Development** 🚧
>
> `cargo-visualize` is still under heavy development.
> Missing features and frictions with the UI interface are expected.
> You are welcome to submit pull requests to make `cargo-visualize` better!## Installation
See [installation instructions](./INSTALL.md)
## Usage
`cargo visualize [options]`
The full list of options can be seen by running
`cargo visualize --help`
Commonly useful options:
* `--all-deps`
* `--all-deps --dedup-transitive-deps`## Output explanation
* Cyan background = root / workspace member
* Grey background = target-specific dependency
* Green background = optional dependency
* Dark Green background = optional target-specific dependency
* Dotted lines = optional dependency (could be removed by disabling a cargo feature)
* Dashed lines = transitively optional dependency (could be removed by removing one of the dotted edges)## Advanced Usage
The [G6 Graph engine](https://g6.antv.antgroup.com/) is exposed as a global variable.
You can interact with the `graph` variable directly in F12 Developer Console.
However, we make no promise about the stability of this interface.