Skip to content

Commit

Permalink
Fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Feb 27, 2024
1 parent d8f5d1c commit fa322d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dunge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1", features = ["wasm-bindgen"], optional = true }
wgpu = { version = "0.19", default-features = false, features = ["webgpu"] }
web-sys = { version = "0.3", features = ["Document", "Window", "Element"] }
web-sys = { version = "<0.3.68", features = ["Document", "Window", "Element"] }

[target.'cfg(target_os = "android")'.dependencies.winit]
version = "0.29"
Expand Down
3 changes: 2 additions & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ fn run() -> Result<(), Error> {
.arg("--out-dir")
.arg(root.join("xtask/web").join(&module))
.args(["-F", &module])
.status()?;
.status()
.map_err(|err| format!("failed to run wasm-pack: {err}"))?;

if !status.success() {
return Err(Error::from("wasm-pack build failed"));
Expand Down

0 comments on commit fa322d8

Please sign in to comment.