forked from zkcrypto/jubjub
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 842 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 842 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
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}'
test: ## Run tests (std + no_std)
@cargo test --features=zeroize,serde
@cargo test --no-default-features
clippy: ## Run clippy
@cargo clippy --all-features --features=rkyv/size_32 -- -D warnings
fmt: ## Format code
@cargo +nightly fmt --all
check: ## Type-check
@cargo check --all-features --features=rkyv/size_32
doc: ## Generate docs
@cargo doc --no-deps
clean: ## Clean build artifacts
@cargo clean
no-std: ## Verify no_std + WASM compatibility
@rustup target add wasm32-unknown-unknown 2>/dev/null || true
@cargo build --release --no-default-features --features serde --target wasm32-unknown-unknown
.PHONY: help test clippy fmt check doc clean no-std