From 35af6b86cfe1d05bffff752506a3503fa7307c83 Mon Sep 17 00:00:00 2001 From: crwen <1543720935@qq.com> Date: Thu, 13 Feb 2025 01:55:28 +0800 Subject: [PATCH] fix: enable wasm_js feature in wasm --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index e4064f7..8b37b11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,6 +120,7 @@ rocksdb = { version = "0.22", optional = true } sled = { version = "0.34", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] +getrandom = { version = "0.3.1", features = ["wasm_js"] } wasm-bindgen = "0.2.95" wasm-bindgen-futures = { version = "0.4.45", optional = true }