Skip to content

Instantly share code, notes, and snippets.

@archisgore
Created December 23, 2021 04:32
Show Gist options
  • Save archisgore/6471ea7b89ba93ab95082948a3e19307 to your computer and use it in GitHub Desktop.
Save archisgore/6471ea7b89ba93ab95082948a3e19307 to your computer and use it in GitHub Desktop.
Extracting license info from Rust crate dependencies
cargo license --json | jq -r '.[] | "Zerotect,\"" + .name + "\",\"" + .version + "\",\"https://crates.io/crates/" + .name + "\",\"" + .license + "\",\"" + .repository + "/blob/master/LICENSE\",\"" + .description + "\",Production (Distributed),Static link,No,No,No"' > dependencies.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment