From bbf4625729e7e90a51eed6a5b70e5e413725a7a4 Mon Sep 17 00:00:00 2001 From: Gudge Date: Tue, 12 May 2026 15:22:33 -0700 Subject: [PATCH] build.sh: run cargo fmt --check and cargo clippy after build Matches what build.bat already does on Windows (lines 62-64). CI runs the same two commands as a gate on every PR, so catching violations locally before pushing keeps the round-trip short. Cost is negligible after the first build: ~1s warm, ~2s incremental. Co-Authored-By: Claude Opus 4.7 (1M context) --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index d6ae80a9..b5d0a38e 100644 --- a/build.sh +++ b/build.sh @@ -75,6 +75,12 @@ else cargo build -p lxc $CARGO_FEATURES fi +echo " Check formatting" +cargo fmt --all -- --check + +echo " Check linting" +cargo clippy --workspace --all-targets -- -D warnings + echo "Rust build complete." # Copy binaries to SDK bin directory