forked from tikv/agatedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (24 loc) · 805 Bytes
/
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
SANITIZER_FLAGS=-Zsanitizer=address
unset-override:
@# unset first in case of any previous overrides
@if rustup override list | grep `pwd` > /dev/null; then rustup override unset; fi
pre-format: unset-override
@rustup component add rustfmt
@cargo install -q cargo-sort
format: pre-format
@cargo fmt
@cargo sort -w ./Cargo.toml ./*/Cargo.toml > /dev/null
clippy:
cargo clippy --all-targets --all-features --workspace -- -D "warnings"
test:
cargo test --all-features --workspace
test_sanitizer:
RUSTFLAGS="$(SANITIZER_FLAGS)" cargo test --all-features --workspace
bench:
cargo bench --all-features --workspace
bench_sanitizer:
RUSTFLAGS="$(SANITIZER_FLAGS)" cargo bench --all-features --workspace
dev: format clippy test
clean:
cargo clean
.PHONY: run clean format clippy test dev