diff --git a/Cargo.lock b/Cargo.lock index 1e7bc66..d58eec4 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 ee7c9be..bcd53ed 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