-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
50 lines (39 loc) · 921 Bytes
/
Justfile
File metadata and controls
50 lines (39 loc) · 921 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
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
# https://github.com/casey/just
default: build test lint
build:
cargo build
test:
cargo nextest run
test-verbose:
cargo nextest run --no-capture
lint:
cargo clippy --fix --allow-dirty --allow-staged
clean:
cargo clean
fmt:
cargo fmt
run:
cargo run
coverage:
rm \
-rf \
target/coverage-raw \
target/coverage
CARGO_INCREMENTAL=0 \
RUSTFLAGS='-Cinstrument-coverage' \
LLVM_PROFILE_FILE='target/coverage-raw/cargo-test-%p-%m.profraw' \
cargo nextest run
grcov \
target/coverage-raw \
--binary-path ./target/debug/deps/ \
-s . \
-t html \
--branch \
--ignore-not-existing \
--ignore '../*' \
--ignore "/*" \
-o target/coverage/html
open-coverage:
open target/coverage/html/index.html
build-linux-x64:
cargo build --target x86_64-unknown-linux-gnu