๐Ÿ“„ build_check.sh
/home/palash/git/iron_learn/build_check.sh
Language: 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!"