-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 706 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 706 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
34
35
36
37
38
39
40
41
all: check test
.PHONY: all
check: style lint
.PHONY: check
clean:
cargo clean
.PHONY: clean
build:
cargo build
.PHONY: build
test:
cargo test --all
cargo test --all --all-features
.PHONY: test
style:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt -- --check
.PHONY: style
lint:
@rustup component add clippy --toolchain stable 2> /dev/null
cargo +stable clippy --all-features --all --tests --examples -- -D clippy::all
.PHONY: lint
format:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt
.PHONY: format
docs: build
@cargo doc --no-deps --all-features
.PHONY: docs
upload-docs: docs
@./upload-docs.sh
.PHONY: upload-docs