#!/bin/sh
set -e

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

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

echo "Running cargo build..."
cargo build

echo "Running cargo test..."
cargo test --lib

echo "All checks passed!"
