blob: f0670799d8f8c422c6fd9b5399e6de5428343401 (
plain)
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
|
all: style lint test
.PHONY: all
check: style lint
.PHONY: check
build:
@cargo build
.PHONY: build
doc:
@cargo doc
.PHONY: doc
test:
@cargo test
.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 --tests -- -D clippy::all
.PHONY: lint
|