diff --git a/components/script/dom/bindings/buffer_source.rs b/components/script/dom/bindings/buffer_source.rs index 054711ef874..dd6984e1eab 100644 --- a/components/script/dom/bindings/buffer_source.rs +++ b/components/script/dom/bindings/buffer_source.rs @@ -34,9 +34,11 @@ use js::rust::{ CustomAutoRooterGuard, Handle, MutableHandleObject, MutableHandleValue as SafeMutableHandleValue, }; +#[cfg(feature = "webgpu")] +use js::typedarray::{ArrayBuffer, HeapArrayBuffer}; use js::typedarray::{ - ArrayBuffer, ArrayBufferU8, ArrayBufferView, ArrayBufferViewU8, CreateWith, HeapArrayBuffer, - TypedArray, TypedArrayElement, TypedArrayElementCreator, + ArrayBufferU8, ArrayBufferView, ArrayBufferViewU8, CreateWith, TypedArray, TypedArrayElement, + TypedArrayElementCreator, }; use crate::dom::bindings::error::{Error, Fallible}; diff --git a/components/shared/webgpu/Cargo.toml b/components/shared/webgpu/Cargo.toml index 8b38af1fa6d..0a4aa4e7ff3 100644 --- a/components/shared/webgpu/Cargo.toml +++ b/components/shared/webgpu/Cargo.toml @@ -18,5 +18,5 @@ ipc-channel = { workspace = true } malloc_size_of = { workspace = true } serde = { workspace = true } webrender_api = { workspace = true } -wgpu-core = { workspace = true } +wgpu-core = { workspace = true, features = ["serde", "wgsl"] } wgpu-types = { workspace = true }