File: get-all-crates.sh

package info (click to toggle)
rust-swc-core 55.0.1%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 62,980 kB
  • sloc: javascript: 1,076; xml: 538; sh: 400; makefile: 35; python: 5
file content (10 lines) | stat: -rwxr-xr-x 214 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
set -eu

function prepend() { while read line; do echo "${1}${line}"; done; }

cargo metadata --format-version 1 \
 | jq -r '.workspace_members[]' \
 | cut -f1 -d" " \
 | sort \
 | prepend '- '