From 154d0def16256fcb0ee861ec7a47fda7aecd9d91 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 4 May 2020 21:28:44 +0200 Subject: Initial --- cargo-dot | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 cargo-dot diff --git a/cargo-dot b/cargo-dot new file mode 100755 index 0000000..571a47f --- /dev/null +++ b/cargo-dot @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +echo "digraph G {" +cargo metadata --format-version=1 | jq -r '.packages[] | "\"" + .id[0:.id|index(" ")] + "\" -> \"" + .dependencies[].name + "\";"' +echo "}" -- cgit v1.2.3-70-g09d2