-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 829 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 829 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
35
36
37
38
default: fmt clippy clippy-trie test test-trie bench-test bench-test-trie check test-c-impl test-cxx-build test-blake2b-ref
test:
cargo test --all --features std,smtc
test-trie:
cargo test --all --all-features
bench-test:
cargo bench -- --test
bench-test-trie:
cargo bench --features trie -- --test
clippy:
cargo clippy --all --features std,smtc,with-blake2b-rs --all-targets
clippy-trie:
cargo clippy --all --all-features --all-targets
fmt:
cargo fmt --all -- --check
check:
cargo check --no-default-features --features with-blake2b-rs
test-c-impl:
git submodule update --init --recursive
cd c/rust-tests && cargo test
test-cxx-build:
g++ -c src/ckb_smt.c -I c -o smt.o && rm -rf smt.o
test-blake2b-ref:
cargo test --no-default-features --features="std","with-blake2b-ref"
publish-crate:
cargo publish