19 lines
380 B
Bash
Executable File
19 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export LC_ALL=C
|
|
|
|
# default arguments are --no-transitive-deps
|
|
ARGS="${*:---no-transitive-deps}"
|
|
echo "Using args: $ARGS"
|
|
|
|
cargo deps $ARGS | dot \
|
|
-Earrowhead=vee \
|
|
-Gratio=0.45 \
|
|
-Gsize=50 \
|
|
-Nheight=0.8 \
|
|
-Nfillcolor=LavenderBlush \
|
|
-Nstyle=filled \
|
|
-Nfontsize=18 \
|
|
-Nmargin=0.05,0.05 \
|
|
-Tpng > rust-dependency-graph.png
|