From a540b8a02efc9ae48532c2b9f89521888bf7ecbe Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Wed, 28 Feb 2024 11:03:35 +1100 Subject: [PATCH] Fix website build --- Cargo.lock | 3 +++ valuescript_wasm/Cargo.toml | 1 + 2 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 1e7bc669..d58eec4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -839,8 +839,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] @@ -3055,6 +3057,7 @@ name = "valuescript_wasm" version = "0.1.0" dependencies = [ "console_error_panic_hook", + "getrandom", "js-sys", "serde", "serde_json", diff --git a/valuescript_wasm/Cargo.toml b/valuescript_wasm/Cargo.toml index ee7c9be8..bcd53edb 100644 --- a/valuescript_wasm/Cargo.toml +++ b/valuescript_wasm/Cargo.toml @@ -18,6 +18,7 @@ valuescript_vm = { path = "../valuescript_vm" } wasm-bindgen = "0.2.63" js-sys = "0.3.61" +getrandom = { version = "0.2", features = ["js"] } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires