-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
54 lines (45 loc) · 1.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
all: test style lint
.PHONY: all
clean:
@cargo clean
.PHONY: clean
build:
@cargo build
.PHONY: build
doc:
@cargo doc --all-features
.PHONY: doc
style:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo fmt -- --check
.PHONY: style
format:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo fmt
.PHONY: format
lint:
@rustup component add clippy --toolchain stable 2> /dev/null
cargo clippy --all-features --tests --all --examples -- -D clippy::all
.PHONY: lint
test: testall
.PHONY: test
checkall:
cargo check --all-features
cargo check --no-default-features
.PHONY: checkall
testall:
cargo check --no-default-features --all
cargo check --no-default-features --features test-support --all
cargo test --all-features --all --
cargo run --all-features --example join
cargo run --all-features --example kill
cargo run --all-features --example panic
cargo run --all-features --example pool
cargo run --all-features --example simple
cargo run --all-features --example stdout
cargo run --all-features --example timeout
cargo run --all-features --example macro
cargo run --all-features --example bad-serialization
cargo run --all-features --example custom-serialization
cargo run --all-features --example args -- 1 2 3
.PHONY: testall