mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-25 09:03:40 +00:00
0cf65223ce
Co-authored-by: Mikayla <mikayla@zed.dev>
19 lines
313 B
Bash
Executable file
19 lines
313 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [[ -x cargo-depgraph ]]; then
|
|
cargo install cargo-depgraph
|
|
fi
|
|
|
|
graph_file=target/crate-graph.html
|
|
|
|
cargo depgraph \
|
|
--workspace-only \
|
|
--offline \
|
|
--root=zed,cli,collab \
|
|
--dedup-transitive-deps \
|
|
| dot -Tsvg > $graph_file
|
|
|
|
echo "open $graph_file"
|
|
open $graph_file
|