]>
git.proxmox.com Git - debcargo-conf.git/blob - dev/filter-binary-crates.sh
2 # Filter list of crates by whether they're a binary crate.
6 if debcargo extract
"$crate" >/dev
/null
2>/dev
/null
; then
7 dir
="$(ls -1d "rust-
${crate//_/-}"-*)"
8 bin
="$(ls -1 "$dir/src
/{main.rs
,bin
/*.rs
}" 2>/dev/null | wc -l)"
9 if [ "$bin" -gt 0 ] ||
grep -q '\[\[bin\]\]' "$dir/Cargo.toml"; then