summaryrefslogtreecommitdiff
path: root/rust/crates/gpu/Cargo.toml
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-13 04:40:19 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-13 05:01:51 +0200
commitdbd68ff1396bf498eb97f095810b78d2bddd0011 (patch)
treef1d555425899ff1ecb969a94dc1ea5d9b84868f7 /rust/crates/gpu/Cargo.toml
parent0d0d7375635733435922a697d91601206cc38b68 (diff)
downloadopencut-dbd68ff1396bf498eb97f095810b78d2bddd0011.tar.gz
refactor: gpu webgl fallback and batched command encoding
Made-with: Cursor
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"]