1
1
_ list :
2
2
@ just --list
3
3
4
+ # Check project.
5
+ check : && clippy
6
+ just --unstable --fmt --check
7
+ # nixpkgs-fmt --check .
8
+ fd --hidden --type=file -e=md -e=yml --exec-batch prettier --check
9
+ fd --hidden -e=toml --exec-batch taplo format --check
10
+ fd --hidden -e=toml --exec-batch taplo lint
11
+ cargo + nightly fmt -- --check
12
+
13
+ # Format project.
14
+ fmt :
15
+ just --unstable --fmt
16
+ # nixpkgs-fmt .
17
+ fd --hidden --type=file -e=md -e=yml --exec-batch prettier --write
18
+ fd --type=file --hidden -e=toml --exec-batch taplo format
19
+ cargo + nightly fmt
20
+
4
21
# Downgrade dev-dependencies necessary to run MSRV checks/tests.
5
22
[private ]
6
23
downgrade-for-msrv :
@@ -12,27 +29,22 @@ msrv := ```
12
29
| sed -E ' s/^1\.([0-9]{2})$/1\.\1\.0/'
13
30
```
14
31
msrv_rustup := " +" + msrv
15
-
16
32
non_linux_all_features_list := ```
17
33
cargo metadata --format-version=1 \
18
34
| jq ' .packages[] | select(.source == null) | .features | keys' \
19
35
| jq -r --slurp \
20
36
--arg exclusions " tokio-uring,io-uring" \
21
37
' add | unique | . - ($exclusions | split(",")) | join(",")'
22
38
```
23
-
24
- all_crate_features := if os () == " linux" {
25
- " --all-features"
26
- } else {
27
- " --features='" + non_linux_all_features_list + " '"
28
- }
39
+ all_crate_features := if os () == " linux" { " --all-features" } else { " --features='" + non_linux_all_features_list + " '" }
29
40
30
41
# Run Clippy over workspace.
31
42
clippy toolchain = " ":
32
43
cargo {{ toolchain }} clippy --workspace --all-targets {{ all_crate_features }}
33
44
34
45
# Test workspace code.
35
- [macos , windows ]
46
+ [macos ]
47
+ [windows ]
36
48
test toolchain = " ":
37
49
cargo {{ toolchain }} test --lib --tests --package=actix-macros
38
50
cargo {{ toolchain }} nextest run --workspace --exclude=actix-macros --no-default-features
0 commit comments