-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
51 lines (35 loc) · 1.4 KB
/
justfile
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
#!/usr/bin/env just --justfile
check:
cargo +stable check
cargo +nightly check --all-features
test:
cargo +nightly test --no-default-features --features dev
env RUSTFLAGS="-C target-cpu=native" cargo +nightly test --all-features
miri:
env MIRIFLAGS="-Zmiri-strict-provenance -Zmiri-check-number-validity" cargo +nightly miri test --all-features
test-address-sanatize:
env CC="clang" env CFLAGS="-fsanitize=address -fno-omit-frame-pointer" env RUSTFLAGS="-C target-cpu=native -Z sanitizer=address" cargo +nightly test -Z build-std --target x86_64-unknown-linux-gnu --tests --all-features
test-memory-sanatize:
env CC="clang" env CFLAGS="-fsanitize=memory -fno-omit-frame-pointer" env RUSTFLAGS="-C target-cpu=native -Z sanitizer=memory" cargo +nightly test -Z build-std --target x86_64-unknown-linux-gnu --tests --all-features
doc:
cargo +nightly doc --all-features
doc-open:
cargo +nightly doc --all-features --open
fmt:
cargo +nightly fmt
fmt-check:
cargo +nightly fmt -- --check
clippy:
cargo +nightly clippy --all-features
full-check: check test test-memory-sanatize doc clippy fmt-check miri
code-cov:
cargo +nightly tarpaulin --ignore-tests --all-features --out Html
clean:
cargo clean
dist-clean: clean
rm Cargo.lock
rm tarpaulin-report.html
generate-readme:
cargo doc2readme
mirai:
env MIRAI_FLAGS="--diag=library" cargo mirai --features dev