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:
313313 # Check with all features.
314314 cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features
315315
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+
316320 # build docs
317321 cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-features --no-deps
318322
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ pollster = "0.4"
162162portable-atomic = " 1.8"
163163portable-atomic-util = " 0.2.4"
164164pp-rs = " 0.2.1"
165- profiling = { version = " 1" , default-features = false }
165+ profiling = { version = " 1.0.1 " , default-features = false }
166166quote = " 1.0.38"
167167raw-window-handle = { version = " 0.6.2" , default-features = false }
168168rwh_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
2929
3030[features ]
3131webgl = [" 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" ]
3235
3336[dependencies ]
3437wgpu = { workspace = true , features = [" noop" ] }
You can’t perform that action at this time.
0 commit comments