File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ jobs:
313
313
# Check with all features.
314
314
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features
315
315
316
+ # Check with all features and profiling macro code.
317
+ # If we don't check this then errors inside `profiling::scope!()` will not be caught.
318
+ cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features --features test-build-with-profiling
319
+
316
320
# build docs
317
321
cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-features --no-deps
318
322
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ pollster = "0.4"
162
162
portable-atomic = " 1.8"
163
163
portable-atomic-util = " 0.2.4"
164
164
pp-rs = " 0.2.1"
165
- profiling = { version = " 1" , default-features = false }
165
+ profiling = { version = " 1.0.1 " , default-features = false }
166
166
quote = " 1.0.38"
167
167
raw-window-handle = { version = " 0.6.2" , default-features = false }
168
168
rwh_05 = { version = " 0.5.2" , package = " raw-window-handle" } # temporary compatibility for glutin-winit
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ harness = true
29
29
30
30
[features ]
31
31
webgl = [" wgpu/webgl" ]
32
+ # This feature is not actually used by this package, but it being present somewhere in the workspace
33
+ # allows us to force the build to have profiling code enabled so we can test that configuration.
34
+ test-build-with-profiling = [" profiling/type-check" ]
32
35
33
36
[dependencies ]
34
37
wgpu = { workspace = true , features = [" noop" ] }
You can’t perform that action at this time.
0 commit comments