crate-dep-graph
1#!/usr/bin/env bash
2
3set -e
4
5if [[ -x cargo-depgraph ]]; then
6 cargo install cargo-depgraph
7fi
8
9graph_file=target/crate-graph.html
10
11cargo depgraph \
12 --workspace-only \
13 --offline \
14 --root=zed,cli,collab \
15 --dedup-transitive-deps \
16 | dot -Tsvg > $graph_file
17
18echo "open $graph_file"
19open $graph_file