for f in $(find . -name \*.rs -not -path "./target/*" -not -path "./vendor/*")
do
if ! grep -q -E '^\/\/ Copyright \(c\) 202[4-9] Mike Tsao$' "$f"
then
echo "$f missing header"
head -n 1 "$f"
exit 1
fi
done
cargo fmt --all
cargo doc --no-default-features --all-features --no-deps
cargo doc \
--no-deps --workspace --document-private-items \
--examples --features="std hound"
cargo build --example minidaw --features="std egui egui_extras ensnare-services/audio ensnare-services/midi" || exit
cargo build --example hello-world --features="std hound egui_extras" || exit
cargo build --example widget-explorer --features="std hound egui_extras" || exit
for e in pocket-calculator entity-gui-explorer render subtractive-patch-converter; do
cargo build --example $e || exit
done
cargo test --workspace
cargo test --examples