File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 13
13
14
14
15
15
env :
16
- GDEXT_FEATURES : ' '
16
+ # Applies to all 'register-docs' features across crates.
17
+ CLIPPY_FEATURES : ' --features register-docs'
18
+ TEST_FEATURES : ' '
17
19
RETRY : ${{ github.workspace }}/.github/other/retry.sh
18
20
19
21
# ASan options: https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
99
101
# Note: could use `-- --no-deps` to not lint dependencies, however it doesn't really speed up and also skips deps in workspace.
100
102
- name : " Check clippy"
101
103
run : |
102
- cargo clippy --all-targets $GDEXT_FEATURES -- \
104
+ cargo clippy --all-targets $CLIPPY_FEATURES -- \
103
105
-D clippy::suspicious \
104
106
-D clippy::style \
105
107
-D clippy::complexity \
@@ -161,10 +163,10 @@ jobs:
161
163
run : cargo +nightly update -Z minimal-versions
162
164
163
165
- name : " Compile tests"
164
- run : cargo test $GDEXT_FEATURES --no-run ${{ matrix.rust-extra-args }}
166
+ run : cargo test $TEST_FEATURES --no-run ${{ matrix.rust-extra-args }}
165
167
166
168
- name : " Test"
167
- run : cargo test $GDEXT_FEATURES ${{ matrix.rust-extra-args }}
169
+ run : cargo test $TEST_FEATURES ${{ matrix.rust-extra-args }}
168
170
169
171
170
172
miri-test :
Original file line number Diff line number Diff line change 21
21
22
22
23
23
env :
24
- GDEXT_FEATURES : ' '
25
- # GDEXT_FEATURES: '--features crate/feature'
24
+ # Applies to all 'register-docs' features across crates.
25
+ CLIPPY_FEATURES : ' --features register-docs'
26
+ TEST_FEATURES : ' '
26
27
# GDEXT_CRATE_ARGS: '-p godot-codegen -p godot-ffi -p godot-core -p godot-macros -p godot'
27
28
RETRY : ${{ github.workspace }}/.github/other/retry.sh
28
29
96
97
97
98
- name : " Check clippy"
98
99
run : |
99
- cargo clippy --all-targets $GDEXT_FEATURES -- \
100
+ cargo clippy --all-targets $CLIPPY_FEATURES -- \
100
101
-D clippy::suspicious \
101
102
-D clippy::style \
102
103
-D clippy::complexity \
@@ -120,10 +121,10 @@ jobs:
120
121
uses : ./.github/composite/rust
121
122
122
123
- name : " Compile tests"
123
- run : cargo test $GDEXT_FEATURES --no-run
124
+ run : cargo test $TEST_FEATURES --no-run
124
125
125
126
- name : " Test"
126
- run : cargo test $GDEXT_FEATURES
127
+ run : cargo test $TEST_FEATURES
127
128
128
129
129
130
# For complex matrix workflow, see https://stackoverflow.com/a/65434401
Original file line number Diff line number Diff line change 1
- #![ cfg( feature = "register-docs" ) ]
2
1
/*
3
2
* Copyright (c) godot-rust; Bromeon and contributors.
4
3
* This Source Code Form is subject to the terms of the Mozilla Public
5
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
5
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7
6
*/
7
+
8
+ #![ cfg( feature = "register-docs" ) ]
9
+
8
10
use godot:: prelude:: * ;
9
11
10
12
/// *documented* ~ **documented** ~ [AABB] < [pr](https://github.com/godot-rust/gdext/pull/748)
You can’t perform that action at this time.
0 commit comments