-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 775 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 775 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
39
40
41
42
SUPPORTED_FEATURES = \
serde \
chrono \
hex \
tokio \
sequoia \
serde,hex \
serde,tokio \
serde,chrono \
serde,chrono,hex \
serde,chrono,tokio \
serde,hex,tokio \
all: build test check TODO
check: test check-lint
test: test-no-default $(patsubst %,test-%,$(SUPPORTED_FEATURES)) docs
cargo test
$(shell cd examples && cargo test)
test-no-default:
cargo test --no-default-features --features ''
test-%:
cargo test --no-default-features --features $(patsubst test-%,%,$@)
check-lint:
cargo clippy --all-features
cd benches && cargo clippy
cd fuzz && cargo clippy
docs:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps
clean:
rm -rvf \
target/ \
benches/target/ \
examples/target/
.PHONY: docs build check test TODO