From 08f0fba5aba0f51c5344e1e52b403d3b3fa8173d Mon Sep 17 00:00:00 2001 From: CREATIVE_tg1 Date: Fri, 24 Oct 2025 07:23:03 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Makefile.rust?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile.rust | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile.rust diff --git a/Makefile.rust b/Makefile.rust new file mode 100644 index 0000000..d503c04 --- /dev/null +++ b/Makefile.rust @@ -0,0 +1,21 @@ +CARGO := cargo + +.PHONY: setup full-lint + +setup: + @echo "Installing Rust components and tools..." + rustup component add clippy rustfmt + $(CARGO) install maturin cargo-deny cargo-audit taplo-cli cross --locked + +full-lint: + @echo "Running rustfmt..." + $(CARGO) fmt --all -- --check + @echo "Running clippy..." + $(CARGO) clippy --all-targets --all-features -- -D warnings + @echo "Running cargo audit..." + $(CARGO) audit + @echo "Running cargo deny..." + $(CARGO) deny check + @echo "Checking TOML files with taplo..." + taplo lint + @echo "All checks completed!"