From 0a2b8d409af54f5920ef5c4dc3428de89ef79224 Mon Sep 17 00:00:00 2001 From: Kaur Kuut Date: Tue, 5 Nov 2024 15:05:21 +0200 Subject: [PATCH] Narrow and document the `getrandom` `js` feature usage. (#398) As was pointed out in [velato#39](https://github.com/linebender/velato/pull/39) this `js` feature specification can be more narrow than all of `wasm32` and should also be documented. --- 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"] }