From 2e8fef56dd3a78a8b09229e04d057ccbafba522d Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 25 Nov 2026 19:37:14 -0800 Subject: [PATCH] craft-gpu-yuv: take wgpu from the workspace The crate depended on `wgpu = "30"`, which turned on all of wgpu's default backends in every crate that depends on it. It now uses the workspace wgpu (`std` and `wgsl`). The native backends are enabled in a non-wasm32 dev-dependency so the crate's device tests can still open an adapter. --- crates/gpu-yuv/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/gpu-yuv/Cargo.toml b/crates/gpu-yuv/Cargo.toml index ddf2fa6cc2..28053d83b1 100644 --- a/crates/gpu-yuv/Cargo.toml +++ b/crates/gpu-yuv/Cargo.toml @@ -12,11 +12,16 @@ workspace = true [dependencies] craft-gpu = { workspace = true } -wgpu = "30" +wgpu = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] pollster = { workspace = true } +# The device tests (src/tests.rs) open a native adapter. The backends are on for this crate's own +# tests only; crates that depend on craft-gpu-yuv get the workspace wgpu with `std` and `wgsl`. +[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] +wgpu = { workspace = true, features = ["dx12", "metal", "vulkan", "gles"] } + [dev-dependencies] craft-gpu-null = { workspace = true } pollster = { workspace = true }