]> code.octet-stream.net Git - hashgood/blobdiff - buildscripts/lint.sh
Build scripts
[hashgood] / buildscripts / lint.sh
diff --git a/buildscripts/lint.sh b/buildscripts/lint.sh
new file mode 100755 (executable)
index 0000000..bf9fc8f
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+set -euxo pipefail
+cd "$(git rev-parse --show-toplevel)"
+source buildscripts/init.sh "$1"
+
+cargo clippy --all-targets --target "${RUST_TARGET}" -- -D warnings
+cargo fmt --all --check