forked from cnosdb/cnosdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 947 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
37
38
39
40
41
docs_check:
cargo doc --no-deps --document-private-items --all-features
docs:
cargo doc --no-deps --document-private-items --all-features --open
fmt_check:
cargo +nightly fmt --all -- --check
fmt:
cargo +nightly fmt --all
clippy_check:
cargo clippy --workspace --all-targets --features coordinator_e2e_test -- -D warnings
clippy:
cargo clippy --workspace --all-targets --features coordinator_e2e_test --fix --allow-staged
build:
cargo build --workspace --bins
build_release:
cargo build --release --workspace --bins
build_trace:
cargo clean;
git stash;
export BACKTRACE=on; cargo build --workspace --bins --features backtrace;
git reset --hard; git stash pop || true
test:
cargo test --workspace --exclude e2e_test
check: fmt_check clippy_check build test docs_check
clean:
cargo clean
run:
cargo run -- run
.PHONY: docs check fmt fmt_check clippy clippy_check build build_release build_trace test docs_check clean run