-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
77 lines (58 loc) · 1.79 KB
/
.justfile
File metadata and controls
77 lines (58 loc) · 1.79 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Prover perf variables
prover_perf_eval_dir := "bin/prover-perf"
prover_programs := "asm-stf,moho"
# List all the available commands
default:
just --list
# Fix Rust formatting
fmt:
cargo fmt --all
# Fix TOML formatting with `taplo`
toml-fmt:
taplo format
# Check Rust formatting
check-fmt:
cargo fmt --all --check
# Rust `clippy` lints
clippy:
cargo clippy --examples --tests --benches --all-features --all-targets --locked
# TOML lint with `taplo`
toml-lint:
taplo lint
# Check TOML formatting with `taplo`
toml-check-fmt:
taplo format --check
# Check formatting of functional tests
functional-check-fmt:
cd functional-tests && uv run ruff format --check
# Lint and typecheck functional tests
functional-lint:
cd functional-tests && uv run ruff check && uv run ty check
# Rust unit tests with `cargo-nextest`
unit-test:
cargo --locked nextest run --all-features
# Rust documentation tests
doctest:
cargo test --doc --all-features
# Run functional tests
functional-test:
cd functional-tests && ./run_test.sh
# Run all lints and formatting checks
lints: toml-check-fmt toml-lint check-fmt clippy functional-check-fmt functional-lint
# Rust all tests
test: unit-test doctest
# Publish crate to crates.io
publish:
cargo publish --token $CARGO_REGISTRY_TOKEN
# Check supply chain security analsis with `cargo-audit`
audit:
cargo audit
# Check GitHub Actions security analysis with `zizmor`
check-github-actions-security:
zizmor .
# Generate reports and profiling data for proofs
prover-eval: prover-clean
cd {{prover_perf_eval_dir}} && ASM_PARAMS_JSON="$(cat asm-params.json)" RUST_LOG=info ZKVM_MOCK=1 ZKVM_PROFILING=1 cargo run --release -- --programs {{prover_programs}}
# Cleans up profiling data generated by prover eval
prover-clean:
rm -rf {{prover_perf_eval_dir}}/*.trace