swc/scripts/cargo/list-crates.sh

7 lines
147 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu
# Prints json for workspace crates
cargo metadata --format-version 1 | jq -r '.packages[] | select(.source == null)'