#!/usr/bin/env bash
# Install with: git config core.hooksPath .githooks

set -euo pipefail

echo "Running cargo fmt --all --check..."
cargo fmt --all --check

echo "Running cargo clippy --workspace --all-targets --all-features..."
cargo clippy --workspace --all-targets --all-features -- -D warnings

echo "Running cargo test --workspace --all-features..."
cargo test --workspace --all-features

