Добавить Makefile.rust
This commit is contained in:
21
Makefile.rust
Normal file
21
Makefile.rust
Normal file
@@ -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!"
|
||||||
Reference in New Issue
Block a user