From 18a23b8e9a98fb31364fb286e68d967bb144ba38 Mon Sep 17 00:00:00 2001 From: Kaur Kuut Date: Tue, 5 Nov 2024 15:03:11 +0200 Subject: [PATCH] Narrow and document the `getrandom` `js` feature usage. --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c9ec85b1..075a3919 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,5 +61,7 @@ features = ["alloc", "derive"] [dev-dependencies] rand = "0.8.5" -[target.'cfg(target_arch="wasm32")'.dev-dependencies] +[target.wasm32-unknown-unknown.dev-dependencies] +# We have a transitive dependency on getrandom and it does not automatically +# support wasm32-unknown-unknown. We need to enable the js feature. getrandom = { version = "0.2.15", features = ["js"] }