Skip to content

Commit 3fbf406

Browse files
evanlinjinclaude
andcommitted
chore(just): Add verify-standalone-all recipe
Verifies all publishable workspace crates can build in isolation. Added alias `vsa` for quick access. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 63595ee commit 3fbf406

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

justfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ alias f := fmt
44
alias t := test
55
alias p := pre-push
66
alias vs := verify-standalone
7+
alias vsa := verify-standalone-all
78

89
_default:
910
@just --list
@@ -98,3 +99,36 @@ verify-standalone crate *args="":
9899
cargo build --locked
99100

100101
echo "{{crate}} builds successfully in isolation!"
102+
103+
# Verify all publishable crates can be built standalone
104+
verify-standalone-all *args="":
105+
#!/usr/bin/env bash
106+
set -euo pipefail
107+
108+
# Get all workspace crates (excluding examples)
109+
CRATES=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.source == null and (.name | startswith("example_") | not)) | .name' | sort)
110+
111+
echo "Verifying all publishable crates can build standalone..."
112+
echo "Crates to verify:"
113+
echo "$CRATES" | sed 's/^/ - /'
114+
echo
115+
116+
for crate in $CRATES; do
117+
echo "========================================="
118+
echo "Verifying $crate..."
119+
echo "========================================="
120+
121+
if ! just verify-standalone "$crate" {{args}}; then
122+
echo "❌ $crate: FAILED"
123+
echo "========================================="
124+
echo "❌ VERIFICATION FAILED for: $crate"
125+
echo "========================================="
126+
exit 1
127+
fi
128+
echo "✅ $crate: SUCCESS"
129+
echo
130+
done
131+
132+
echo "========================================="
133+
echo "✅ All crates build successfully in isolation!"
134+
echo "========================================="

0 commit comments

Comments
 (0)