forked from Lafiya-xyz/Lafiya-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 865 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 865 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
33
34
.PHONY: build test fmt fmt-check clippy wasm check clean config-check config-list deploy bench
build:
cargo build --workspace
test:
cargo test --workspace
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets -- -D warnings
wasm:
cargo build --workspace --release --target wasm32v1-none
test-integration: wasm
./tests/integration/run.sh
check: fmt-check clippy test wasm
bindings: wasm
stellar contract bindings typescript --wasm target/wasm32v1-none/release/attester_registry.wasm --output-dir bindings/attester-registry --overwrite
stellar contract bindings typescript --wasm target/wasm32v1-none/release/attestation_registry.wasm --output-dir bindings/attestation-registry --overwrite
clean:
cargo clean
bench:
cargo test -p attester-registry large_attester_allowlist_load -- --nocapture