#!/usr/bin/env bash
set -e

cargo fmt --all -- --check

if command -v taplo &> /dev/null; then
    taplo format --check
fi

cargo check --workspace --all-targets --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features
