Skip to content

Commit

Permalink
Fix test wasm actions
Browse files Browse the repository at this point in the history
  • Loading branch information
antaalt committed Mar 21, 2024
1 parent 3473602 commit 3c3b36c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.wasm32-unknown-unknown]
runner = 'wasm-bindgen-test-runner' # This is required so that wasm test are executed in a browser.
rustflags = ["--cfg=web_sys_unstable_apis"] # This flag is required because wgpu is still unstable on wasm.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ persistence = ["serde", "egui_node_graph/persistence", "egui/persistence", "wgpu
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.42"
wasm-bindgen-test = "0.3.42"
web-sys = "0.3.5"
console_log = "1.0.0"
js-sys = "0.3.68"
Expand Down

0 comments on commit 3c3b36c

Please sign in to comment.