Skip to content

Commit

Permalink
Narrow and document the getrandom js feature usage. (#398)
Browse files Browse the repository at this point in the history
As was pointed out in
[velato#39](linebender/velato#39) this `js`
feature specification can be more narrow than all of `wasm32` and should
also be documented.
  • Loading branch information
xStrom authored Nov 5, 2024
1 parent a44f3b6 commit 0a2b8d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

0 comments on commit 0a2b8d4

Please sign in to comment.