-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathMakefile
41 lines (32 loc) · 1.08 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
.PHONY: build
build:
cargo build --release
.PHONY: fmt
fmt:
cargo fmt --all -- --check
taplo fmt --check
.PHONY: lint
lint:
cargo clippy --all-targets -- -D warnings
.PHONY: doc
doc:
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --all-features --no-deps
.PHONY: check-features
check-features:
cargo hack check --each-feature --skip cosign --skip full --skip mock-client --skip registry
.PHONY: check-features-native-tls
check-features-native-tls:
cargo hack check --feature-powerset --features native-tls --skip wasm --skip test-registry --skip rustls-tls --skip rustls-tls-native-roots
.PHONY: check-features-rustls-tls
check-features-rustls-tls:
cargo hack check --feature-powerset --features rustls-tls --skip wasm --skip test-registry --skip native-tls --skip rustls-tls-native-roots
.PHONY: test
test: fmt lint doc
cargo test --workspace --no-default-features --features full,native-tls,test-registry
cargo test --workspace --no-default-features --features full,rustls-tls,test-registry
.PHONY: clean
clean:
cargo clean
.PHONY: coverage
coverage:
cargo tarpaulin -o Html