sh โข Lines: 22#!/bin/bash
set -e
trap 'echo "โ Pre-commit failed at: $BASH_COMMAND"' ERR
clear
echo "๐งช Running Rust build, clippy and format checks..."
cargo fmt
cargo fmt --all --check
cargo clippy --all-targets --all-features --release -- -D warnings
cargo build --all-features --release
cargo test --all-features --doc
cargo llvm-cov --all-features --html -- --test-threads=1
echo "โ
All checks passed. Good to go!"