diff --git a/lib/Cargo.toml b/lib/Cargo.toml index e47080b..7d44d06 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -27,3 +27,6 @@ stringreader = "0.1.1" [features] stream-json-parser = [] + +[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies] +getrandom = { version = "0.2.15", features = ["js"] }