summaryrefslogtreecommitdiff
path: root/rust/crates/gpu/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'rust/crates/gpu/Cargo.toml')
-rw-r--r--rust/crates/gpu/Cargo.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/crates/gpu/Cargo.toml b/rust/crates/gpu/Cargo.toml
index 4be1e8d6..4ee7571e 100644
--- a/rust/crates/gpu/Cargo.toml
+++ b/rust/crates/gpu/Cargo.toml
@@ -8,6 +8,10 @@ bytemuck = { version = "1.25.0", features = ["derive"] }
thiserror = "2.0.18"
wgpu = "29.0.1"
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+wasm-bindgen = "0.2.116"
+web-sys = { version = "0.3.93", features = ["Document", "Window", "HtmlCanvasElement", "OffscreenCanvasRenderingContext2d", "ImageData"] }
+
[features]
default = []
-wasm = []
+wasm = ["wgpu/webgl"]