-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 939 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
help: ## Display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
fmt: ## Format code (requires nightly)
@rustup component add --toolchain nightly rustfmt 2>/dev/null || true
@cargo +nightly fmt --all $(if $(CHECK),-- --check,)
clippy: ## Run clippy
@cargo clippy --all-features -- -D warnings
cq: ## Run code quality checks (formatting + clippy)
@$(MAKE) fmt CHECK=1
@$(MAKE) clippy
check: ## Type-check
@cargo check --all-features
test: ## Run tests
@cargo test --release
no-std: ## Verify no_std compatibility on bare-metal target
@rustup target add thumbv6m-none-eabi 2>/dev/null || true
@cargo build --no-default-features -p dusk-bytes --target thumbv6m-none-eabi
doc: ## Generate docs
@cargo doc --no-deps
clean: ## Clean build artifacts
@cargo clean
.PHONY: help fmt clippy cq check test no-std doc clean