mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
0cf65223ce
Co-authored-by: Mikayla <mikayla@zed.dev>
20 lines
313 B
Bash
Executable File
20 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
|