From 3cf02e57f42c8ccea2d605241058167b09b2abf0 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 12 Nov 2020 15:33:19 +0100 Subject: [PATCH] Fix sliding puzzle on wasm Activate the wasm-bindgen feature on the rand crate --- examples/slide_puzzle/wasm/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/slide_puzzle/wasm/Cargo.toml b/examples/slide_puzzle/wasm/Cargo.toml index 0c59839a6e5..4d445cb9270 100644 --- a/examples/slide_puzzle/wasm/Cargo.toml +++ b/examples/slide_puzzle/wasm/Cargo.toml @@ -18,6 +18,7 @@ rand = "0.7.3" wasm-bindgen = { version = "0.2" } web-sys = { version = "0.3", features=["console"] } console_error_panic_hook = "0.1.5" +rand = { version = "0.7.3", features = ["wasm-bindgen"] } [build-dependencies] sixtyfps-build = { path = "../../../api/sixtyfps-rs/sixtyfps-build" }