-
Notifications
You must be signed in to change notification settings - Fork 17
/
.justfile
83 lines (54 loc) · 1.65 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 'Just' Configuration
# Loads .env file for variables to be used in
# in this just file
set dotenv-load := true
# Ignore recipes that are commented out
set ignore-comments := true
# Set shell for Windows OSs:
# If you have PowerShell Core installed and want to use it,
# use `pwsh.exe` instead of `powershell.exe`
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
# Set shell for non-Windows OSs:
set shell := ["bash", "-uc"]
export RUST_BACKTRACE := "1"
export RUST_LOG := "info"
export CI := "1"
build:
cargo build --all-features
cargo build -r --all-features
b: build
check:
cargo check --no-default-features --all-targets --workspace
cargo check --all-features --all-targets --workspace
c: check
ci:
just loop . dev
dev: format lint test lint-deps
d: dev
doc:
cargo +stable doc --no-deps --all-features --workspace --examples
format-dprint:
dprint fmt
format-cargo:
cargo fmt --all
format: format-cargo format-dprint
fmt: format
rev:
cargo insta review
inverse-deps crate:
cargo tree -e features -i {{ crate }}
lint: check
cargo clippy --no-default-features -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings
lint-deps:
cargo audit
cargo deny check
loop dir action:
watchexec -w {{ dir }} -- "just {{ action }}"
test: check lint
cargo test --all-targets --all-features --workspace --examples
test-ignored: check lint
cargo test --all-targets --all-features --workspace --examples -- --ignored
t: test test-ignored
coverage $RUST_BACKTRACE="0":
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Lcov --output-dir coverage