-
Notifications
You must be signed in to change notification settings - Fork 208
/
Makefile
49 lines (36 loc) · 1.1 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
CARGO=RUSTFLAGS='-F warnings -A deprecated' cargo
.PHONY: debug release test test-release bench fmt cov clean clippy security_audit
debug:
$(CARGO) build -j 1 --all
scripts/release.sh x86 debug
release:
$(CARGO) build -j 1 --all --release
scripts/release.sh x86 release
aarch64_debug:
$(CARGO) build --all --target aarch64-unknown-linux-gnu
scripts/release.sh aarch64 debug
aarch64_release:
$(CARGO) build --all --release --target aarch64-unknown-linux-gnu
scripts/release.sh aarch64 release
test:
RUST_BACKTRACE=full $(CARGO) test -j 1 --all 2>&1
test-release:
RUST_BACKTRACE=full $(CARGO) test -j 1 --release --all
bench:
-rm target/bench.log
cargo bench --all --no-run |tee target/bench.log
cargo bench --all --jobs 1 |tee -a target/bench.log
fmt:
cargo fmt --all -- --check
cov:
cargo cov test --all
cargo cov report --open
clean:
rm -rf target/debug/
rm -rf target/release/
clippy:
$(CARGO) clippy -j 1 --all
# use cargo-audit to audit Cargo.lock for crates with security vulnerabilities
# expecting to see "Success No vulnerable packages found"
security_audit:
scripts/security_audit.sh