-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 594 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 594 Bytes
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
all: style lint test
.PHONY: all
check: style lint
.PHONY: check
build:
@cargo build
.PHONY: build
doc:
@cargo doc
.PHONY: doc
test:
@cargo test --no-default-features
@cargo test --all-features
.PHONY: test
style:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt -- --check
.PHONY: style
format:
@rustup component add rustfmt --toolchain stable 2> /dev/null
@cargo +stable fmt
.PHONY: format
lint:
@rustup component add clippy --toolchain stable 2> /dev/null
@cargo +stable clippy --all-features --tests --examples -- -D clippy::all
.PHONY: lint