forked from stratis-storage/devicemapper-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (44 loc) · 1.23 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
55
56
57
58
59
60
RUST_2018_IDIOMS = -D bare-trait-objects \
-D ellipsis-inclusive-range-patterns \
-D unused-extern-crates
DENY = -D warnings -D future-incompatible -D unused ${RUST_2018_IDIOMS}
${HOME}/.cargo/bin/cargo-expand:
cargo install cargo-expand
${HOME}/.cargo/bin/cargo-tree:
cargo install cargo-tree
${HOME}/.cargo/bin/cargo-audit:
cargo install cargo-audit
expand: ${HOME}/.cargo/bin/cargo-expand
PATH=${HOME}/.cargo/bin:${PATH} cargo expand core::errors
PATH=${HOME}/.cargo/bin:${PATH} cargo expand core::types
PATH=${HOME}/.cargo/bin:${PATH} cargo expand units
tree: ${HOME}/.cargo/bin/cargo-tree
PATH=${HOME}/.cargo/bin:${PATH} cargo tree
audit: ${HOME}/.cargo/bin/cargo-audit
PATH=${HOME}/.cargo/bin:${PATH} cargo audit -D
fmt:
cargo fmt
travis_fmt:
cargo fmt -- --check
build:
RUSTFLAGS="${DENY}" cargo build
build-tests:
RUSTFLAGS="${DENY}" cargo test --no-run
test:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 cargo test -- --skip sudo_ --skip loop_
sudo_test:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test
clippy:
cargo clippy --all-targets --all-features -- -D warnings -D clippy::needless_borrow
docs:
cargo doc --no-deps
.PHONY:
audit
build
clippy
docs
fmt
sudo_test
test
travis_fmt
tree