16 lines
413 B
Bash
Executable File
16 lines
413 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if command -v bacon >/dev/null 2>&1; then
|
|
exec bacon "$@"
|
|
fi
|
|
|
|
# Compatibility for developers who still have the now-dormant cargo-watch.
|
|
if command -v cargo-watch >/dev/null 2>&1; then
|
|
exec cargo watch -x "check --workspace --all-targets --all-features" \
|
|
-x "test --workspace --all-features"
|
|
fi
|
|
|
|
echo "Install Bacon with: cargo install --locked bacon" >&2
|
|
exit 127
|