#!/usr/bin/env bash
set -euo pipefail

echo "[pre-commit] cargo fmt --all -- --check"
cargo fmt --all -- --check

echo "[pre-commit] cargo clippy --all-targets --no-default-features -- -D warnings"
cargo clippy --all-targets --no-default-features -- -D warnings

echo "[pre-commit] cargo check --all-features"
cargo check --all-features
