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
# Run all CI checks locally: make check
.PHONY: check fmt clippy test test-all audit deny build doc coverage bench clean
check: fmt clippy test audit
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --all-targets -- -D warnings
cargo clippy --no-default-features --all-targets -- -D warnings
cargo clippy --all-features --all-targets -- -D warnings
test:
cargo test
test-all:
cargo test --no-default-features
cargo test --features http
cargo test --features ws
cargo test --features unix
cargo test --features audit
cargo test --features events
cargo test --all-features
audit:
cargo audit
deny:
cargo deny check
build:
cargo build --release
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
coverage:
cargo llvm-cov --all-features --html --output-dir coverage/
bench:
bash scripts/bench-log.sh
clean:
cargo clean
rm -rf coverage/