From fa322d8fb5cbe0e9e456a9ce37dda95efacee892 Mon Sep 17 00:00:00 2001 From: nanoqsh Date: Tue, 27 Feb 2024 14:54:16 +0600 Subject: [PATCH] Fix wasm build --- dunge/Cargo.toml | 2 +- xtask/src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dunge/Cargo.toml b/dunge/Cargo.toml index 1c511aa..11e9c8c 100644 --- a/dunge/Cargo.toml +++ b/dunge/Cargo.toml @@ -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" diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0c1147c..58d9788 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -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"));