-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
69 lines (49 loc) · 1.39 KB
/
justfile
File metadata and controls
69 lines (49 loc) · 1.39 KB
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
export RUST_BACKTRACE := "1"
# Build
build:
cargo build --all-features --all-targets
watch_build:
cargo watch -x "build --all-features --all-targets"
clippy:
cargo clippy --all-features --all-targets -- -D warnings
watch_clippy:
cargo watch -x "clippy --all-features --all-targets -- -D warnings"
test *args:
cargo test --all-features {{args}}
[working-directory: 'compile-tests']
compile-test *args:
cargo test --all-features {{args}}
miri *args:
cargo miri test --all-features {{args}}
check_all:
just stable
cargo clippy --all-features --all-targets -- -D warnings
cargo build --all-features
cargo test --all-features
cd compile-tests && cargo test --all-features
RUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps
just msrv
cargo build --all-features
cargo test --all-features
cd compile-tests && cargo test --all-features
just nightly
cargo build --all-features
cargo test --all-features
cargo miri test --all-features
cd compile-tests && cargo test --all-features
just stable
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps
# Toolchain management
stable:
./scripts/switch_rust_toolchain.sh -c
nightly:
./scripts/switch_rust_toolchain.sh -n
msrv:
./scripts/switch_rust_toolchain.sh -m
# Formatting
fmt:
cargo fmt
fmt_nightly:
just nightly
cargo fmt