-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (39 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
.PHONY: check check-* test test-* cli-*
check: check-default check-mixed check-secp256k1 check-k256
# Checks the source code with default features enabled.
check-default:
cargo clippy
# Checks the source code with all features enabled.
check-mixed:
cargo clippy --all-features
cargo clippy --all-features --tests
# Checks the source code with variations of libsecp256k1 feature sets.
check-secp256k1:
cargo clippy --no-default-features --features secp256k1
cargo clippy --no-default-features --features secp256k1,serde
cargo clippy --no-default-features --features secp256k1,serde,rand
cargo clippy --no-default-features --features secp256k1,serde,rand,secp256k1-invert,num-traits
cargo clippy --no-default-features --features secp256k1,serde,rand,secp256k1-invert,num-traits --tests
# Checks the source code with variations of pure-rust feature sets.
check-k256:
cargo clippy --no-default-features --features k256
cargo clippy --no-default-features --features k256,serde
cargo clippy --no-default-features --features k256,serde,rand,num-traits
cargo clippy --no-default-features --features k256,serde,rand,num-traits --tests
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,secp256k1-invert,num-traits
test-k256:
cargo test --no-default-features --features k256,serde,rand,num-traits
cli: cli-release
cli-debug:
cargo build --no-default-features --features secp256k1,secp256k1-invert,cli-rng
cli-release:
cargo build --release --no-default-features --features secp256k1,secp256k1-invert,cli-rng
.PHONY: docwatch
docwatch:
watch -n 5 cargo doc --all-features