-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
44 lines (33 loc) · 1.46 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
38
39
40
41
42
43
44
.PHONY: check check-* test test-*
check: check-default check-mixed check-secp256k1 check-k256
# Checks the source code with default features enabled.
check-default:
cargo clippy -- -D warnings
# Checks the source code with all features enabled.
check-mixed:
cargo clippy --all-features -- -D warnings
cargo clippy --all-features --tests -- -D warnings
# Checks the source code with variations of libsecp256k1 feature sets.
check-secp256k1:
cargo clippy --no-default-features --features secp256k1 -- -D warnings
cargo clippy --no-default-features --features secp256k1,serde -- -D warnings
cargo clippy --no-default-features --features secp256k1,serde,rand -- -D warnings
cargo clippy --no-default-features --features secp256k1,serde,rand --tests -- -D warnings
# Checks the source code with variations of pure-rust feature sets.
check-k256:
cargo clippy --no-default-features --features k256 -- -D warnings
cargo clippy --no-default-features --features k256,serde -- -D warnings
cargo clippy --no-default-features --features k256,serde,rand -- -D warnings
cargo clippy --no-default-features --features k256,serde,rand --tests -- -D warnings
test: test-default test-mixed test-secp256k1 test-k256
test-default:
cargo test
test-mixed:
cargo test --all-features
test-secp256k1:
cargo test --no-default-features --features secp256k1,serde,rand
test-k256:
cargo test --no-default-features --features k256,serde,rand
.PHONY: docwatch
docwatch:
watch -n 5 cargo doc --all-features