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.
This commit is contained in:
dotCooCoo committed 2026-11-25 19:37:14 -08:00
1 parent b67fab9d1b
commit 2e8fef56dd
1 file changed
+6 -1
+6 -1
View File
@@ -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 }