-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
24 lines (19 loc) · 763 Bytes
/
Justfile
File metadata and controls
24 lines (19 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Lint the code
lint:
cargo clippy --all-targets --all-features -- -D warnings -D clippy::pedantic
# Build the project (Release mode)
build:
cargo build --release
# Run tests
test:
cargo test --all-features --verbose
# Run the app
run:
RUST_LOG=info cargo run
# Generate HTML test coverage report in target/coverage/html
# Requires cargo-binutils, grcov and rustup llvm-tools to be installed
cov:
[ -d target/coverage/html ] && rm -r target/coverage/html || true
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html
rm *profraw