-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
62 lines (47 loc) · 1.32 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
52
53
54
55
56
57
58
59
60
61
62
export RUSTC_WRAPPER := "sccache"
alias t:= cargo-test
alias ta:= test-all
alias tc:= test-coverage-vscode
alias b:= build
alias br:= build-release
alias mut:= mutation
alias c:= contracts
build-release:
cargo build --release
build:
cargo clippy
cargo build
cargo-test:
cargo nextest run
cargo-test-nocapture:
cargo test -- --nocapture
contracts:
bash contracts/verify_git.sh
python3 contracts/verify_gitlab.py
python3 contracts/verify_github.py
test-all:
cargo test
bash contracts/verify_git.sh
python3 contracts/verify_gitlab.py
python3 contracts/verify_github.py
test-watch:
cargo watch --clear --exec test
test-coverage-tarpaulin:
cargo tarpaulin --frozen --exclude-files=src/main.rs --out Html
test-coverage-llvm:
cargo llvm-cov --html
test-coverage-vscode:
# Provides vscode coverage gutters through
# https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
# extension as explained in
# https://github.com/taiki-e/cargo-llvm-cov?tab=readme-ov-file#display-coverage-in-vs-code
cargo llvm-cov --lcov --output-path lcov.info
mutation:
cargo mutants
audit:
mkdir -p .cargo-audit-db/db
cargo audit -D warnings -d .cargo-audit-db/db
mdbook-serve:
mdbook serve doc --open
doc:
cargo doc --no-deps --open