-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
79 lines (70 loc) · 1.97 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
#!/usr/bin/env just --justfile
alias c := clippy
alias check := clippy
alias t := test
alias fmt := format
alias d := doc
export MIRIFLAGS := "-Zmiri-ignore-leaks"
@_default:
echo "Using this Justfile for clippy/test requires cargo-hack & the"
echo "x86_64-pc-windows-msvc target installed"
echo "format requires a nightly toolchain with rustfmt"
echo
just --list
# Run clippy against all backends
clippy:
cargo hack \
--each-feature \
--skip default \
--exclude-no-default-features \
--exclude-all-features \
clippy \
--tests \
--target x86_64-pc-windows-msvc
# Run tests against all backends
test:
cargo hack \
--each-feature \
--skip default \
--exclude-no-default-features \
--exclude-all-features \
test \
--target x86_64-pc-windows-msvc
# Run miri against all backends on Windows & Linux
miri:
@echo "Running miri against x86_64-pc-windows-msvc"
cargo +nightly hack \
--each-feature \
--skip default,backend-async-std,backend-smol \
--exclude-no-default-features \
--exclude-all-features \
miri \
test \
--target x86_64-pc-windows-msvc
@echo "Running miri against x86_64-unknown-linux-gnu"
cargo +nightly hack \
--each-feature \
--skip default \
--exclude-no-default-features \
--exclude-all-features \
miri \
test \
--target x86_64-unknown-linux-gnu
# Benchmark close_already's non-async backends
[windows]
bench:
# Skip std perf & async runtimes
cargo hack \
--each-feature \
--skip default,backend-async-std,backend-smol,backend-tokio \
--exclude-no-default-features \
--exclude-all-features \
bench \
-- \
close_already
# Run nightly rustfmt
format:
cargo +nightly fmt
# Build internal documentation for this crate
doc:
cargo doc --open --document-private-items