-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
60 lines (49 loc) · 1.13 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
[private]
default:
@just --list --no-aliases
# generate and open the documentation.
@doc:
cargo doc --open
# build the library.
@build:
cargo build --release
@bacon:
bacon --all-features
# clean up everything
@clean:
cargo clean
# reformat the code.
@fmt:
cargo +nightly fmt --all
# runs all checks
check:
just check-fmt
just clippy
just deny
just test
just udeps
# check if the code is formatted correctly.
@check-fmt:
echo "Checking code format..."
cargo +nightly fmt --all -- --check
# run clippy.
@clippy:
echo "Running clippy..."
cargo clippy --all-targets --all-features --tests -- -D warnings
# check dependencies licenses.
@deny:
echo "Checking dependencies licenses..."
cargo deny check
# check for unused dependencies.
@udeps:
echo "Checking unused dependencies..."
cargo +nightly udeps --all-targets
# run the unit tests.
@test:
echo "Running tests..."
cargo nextest run --all --all-features
cargo nextest run --no-default-features
cargo nextest run -F trace
cargo nextest run -F trace-context
cargo nextest run -F trace,trace-context
cargo nextest run --examples --all-features