forked from scroll-tech/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 1.52 KB
/
Makefile
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
33
34
35
36
37
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}'
clippy: ## Run clippy checks over all workspace members
@cargo check --all-features
@cargo clippy --all-features --all-targets -- -D clippy::all
doc: ## Generate and tests docs including private items
@cargo doc --no-deps --all --document-private-items
fmt: ## Check whether the code is formated correctly
@cargo check --all-features
@cargo fmt --all -- --check
test: ## Run tests for all the workspace members
@cargo test --release --all --all-features --exclude integration-tests --exclude circuit-benchmarks
test_benches: ## Compiles the benchmarks
@cargo test --verbose --release --all-features -p circuit-benchmarks --no-run
test-all: fmt doc clippy test_benches test ## Run all the CI checks locally (in your actual toolchain)
evm_bench: ## Run Evm Circuit benchmarks
@cargo test --profile bench bench_evm_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
state_bench: ## Run State Circuit benchmarks
@cargo test --profile bench bench_state_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
keccak_round_bench: ## Run State Circuit benchmarks
@cargo test --profile bench bench_keccak_round -p circuit-benchmarks --features benches -- --nocapture
circuit_benches: evm_bench state_bench ## Run All Circuit benchmarks
.PHONY: clippy doc fmt test test_benches test-all evm_bench state_bench circuit_benches help