[ci] Check with profiling enabled.

Minimum version of `profiling` increases from ^1.0.0 to ^1.0.1 because
the `type-check` feature was added in 1.0.1.
This commit is contained in:
Kevin Reid 2025-07-10 09:46:37 -07:00 committed by Connor Fitzgerald
parent da6ccd5516
commit c0a8ba69b0
3 changed files with 8 additions and 1 deletions

View File

@ -313,6 +313,10 @@ jobs:
# Check with all features.
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features
# Check with all features and profiling macro code.
# If we don't check this then errors inside `profiling::scope!()` will not be caught.
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features --features test-build-with-profiling
# build docs
cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-features --no-deps

View File

@ -162,7 +162,7 @@ pollster = "0.4"
portable-atomic = "1.8"
portable-atomic-util = "0.2.4"
pp-rs = "0.2.1"
profiling = { version = "1", default-features = false }
profiling = { version = "1.0.1", default-features = false }
quote = "1.0.38"
raw-window-handle = { version = "0.6.2", default-features = false }
rwh_05 = { version = "0.5.2", package = "raw-window-handle" } # temporary compatibility for glutin-winit

View File

@ -29,6 +29,9 @@ harness = true
[features]
webgl = ["wgpu/webgl"]
# This feature is not actually used by this package, but it being present somewhere in the workspace
# allows us to force the build to have profiling code enabled so we can test that configuration.
test-build-with-profiling = ["profiling/type-check"]
[dependencies]
wgpu = { workspace = true, features = ["noop"] }