21
21
# Downgrade dependencies necessary to run MSRV checks/tests.
22
22
[private ]
23
23
downgrade-for-msrv :
24
- cargo update -p=clap --precise=4.4.18 # next ver: 1.74.0
25
24
cargo update -p=native-tls --precise=0.2.13 # next ver: 1.80.0
26
25
cargo update -p=litemap --precise=0.7.4 # next ver: 1.81.0
27
26
cargo update -p=zerofrom --precise=0.1.5 # next ver: 1.81.0
@@ -42,38 +41,42 @@ non_linux_all_features_list := ```
42
41
```
43
42
all_crate_features := if os () == " linux" { " --all-features" } else { " --features='" + non_linux_all_features_list + " '" }
44
43
44
+ toolchain := " "
45
+
45
46
# Run Clippy over workspace.
46
- clippy toolchain = " " :
47
+ clippy :
47
48
cargo {{ toolchain }} clippy --workspace --all-targets {{ all_crate_features }}
48
49
49
50
# Run Clippy using MSRV.
50
- clippy-msrv : downgrade-for-msrv (clippy msrv_rustup)
51
+ clippy-msrv : downgrade-for-msrv
52
+ @ just toolchain={{ msrv_rustup }} clippy
51
53
52
54
# Test workspace code.
53
55
[macos ]
54
56
[windows ]
55
- test toolchain = " " :
57
+ test :
56
58
cargo {{ toolchain }} test --lib --tests --package=actix-macros
57
59
cargo {{ toolchain }} nextest run --no-tests=warn --workspace --exclude=actix-macros --no-default-features
58
60
cargo {{ toolchain }} nextest run --no-tests=warn --workspace --exclude=actix-macros {{ all_crate_features }}
59
61
60
62
# Test workspace code.
61
63
[linux ]
62
- test toolchain = " " :
64
+ test :
63
65
cargo {{ toolchain }} test --lib --tests --package=actix-macros
64
66
cargo {{ toolchain }} nextest run --no-tests=warn --workspace --exclude=actix-macros --no-default-features
65
67
cargo {{ toolchain }} nextest run --no-tests=warn --workspace --exclude=actix-macros {{ non_linux_all_features_list }}
66
68
cargo {{ toolchain }} nextest run --no-tests=warn --workspace --exclude=actix-macros {{ all_crate_features }}
67
69
68
70
# Test workspace using MSRV.
69
- test-msrv : downgrade-for-msrv (test msrv_rustup)
71
+ test-msrv : downgrade-for-msrv
72
+ @ just toolchain={{ msrv_rustup }} test
70
73
71
74
# Test workspace docs.
72
- test-docs toolchain = " " : && doc
75
+ test-docs : && doc
73
76
cargo {{ toolchain }} test --doc --workspace {{ all_crate_features }} --no-fail-fast -- --nocapture
74
77
75
78
# Test workspace.
76
- test-all toolchain = " " : ( test toolchain) ( test-docs toolchain)
79
+ test-all : test test-docs
77
80
78
81
# Document crates in workspace.
79
82
doc * args : && doc-set-workspace-crates
@@ -96,12 +99,12 @@ doc-watch:
96
99
cargo watch -- just doc
97
100
98
101
# Check for unintentional external type exposure on all crates in workspace.
99
- check-external-types-all toolchain = " +nightly" :
102
+ check-external-types-all :
100
103
#!/usr/bin/env bash
101
104
set -euo pipefail
102
105
exit=0
103
106
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml | grep -vE " \- codegen/|\- derive/|\- macros/" ); do
104
- if ! just check-external-types-manifest " $f" {{ toolchain }} ; then exit=1 ; fi
107
+ if ! just toolchain= " +nightly" check-external-types-manifest " $f" ; then exit=1 ; fi
105
108
echo
106
109
echo
107
110
done
@@ -114,9 +117,9 @@ check-external-types-all-table toolchain="+nightly":
114
117
for f in $(find . -mindepth 2 -maxdepth 2 -name Cargo.toml | grep -vE " \- codegen/|\- derive/|\- macros/" ); do
115
118
echo
116
119
echo " Checking for $f"
117
- just check-external-types-manifest " $f" {{ toolchain }} --output-format=markdown-table
120
+ just toolchain= " +nightly" check-external-types-manifest " $f" --output-format=markdown-table
118
121
done
119
122
120
123
# Check for unintentional external type exposure on a crate.
121
- check-external-types-manifest manifest_path toolchain = " +nightly" * extra_args = " ":
124
+ check-external-types-manifest manifest_path * extra_args = " ":
122
125
cargo {{ toolchain }} check-external-types --manifest-path " {{ manifest_path }} " {{ extra_args }}
0 commit comments