-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (36 loc) · 1.87 KB
/
Makefile
File metadata and controls
41 lines (36 loc) · 1.87 KB
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
.PHONY: coverage
doc:
cargo test --doc --all-features
cargo +nightly rustdoc --lib --open --all-features -- --cfg docsrs
check:
rustup component add clippy
cargo clippy --no-default-features -- -Dwarnings
cargo clippy --no-default-features --features std -- -Dwarnings
cargo clippy --no-default-features --features alloc -- -Dwarnings
cargo +nightly clippy --no-default-features --features nightly -- -Dwarnings
cargo +nightly clippy --features alloc_api -- -Dwarnings
cargo clippy --features futures -- -Dwarnings
cargo +nightly clippy --features const -- -Dwarnings
miri:
rustup component add miri
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --no-default-features
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --no-default-features --features std
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --no-default-features --features alloc
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test --no-default-features --features nightly
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test --features alloc_api
RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test --features const
test: check
cargo test --no-default-features
cargo test --no-default-features --features std
cargo test --no-default-features --features alloc
cargo +nightly test --no-default-features --features nightly
cargo +nightly test --features alloc_api
cargo test --features futures
cargo +nightly test --features const
coverage:
rustup component add llvm-tools-preview
cargo install grcov
rm -rfd coverage/*
mkdir -p coverage/tmp
LLVM_PROFILE_FILE="coverage/tmp/%p-%m.profraw" RUSTFLAGS="-Cinstrument-coverage" cargo +nightly test --all-features
grcov ./coverage -s . --binary-path ./target/debug/ -t html,markdown --branch --ignore-not-existing -o ./coverage