Output Rust Project's Dependency Graph as SVG
  • brew install dot jq graphviz

  • cargo install cargo-deps

  • simple

cargo deps | dot -Tsvg > depgraph.svg
  • complicated filter
cargo deps --filter $(cargo metadata --format-version 1 | jq '.workspace_members[]' -r | cut -d ' ' -f 1 | tr '\n' ' ') | dot -Tsvg > depgraph.svg