mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 12:02:07 +03:00
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
|