Skip to content

Commit

Permalink
Add js feature for getrandom
Browse files Browse the repository at this point in the history
This is in line with the recommendation in https://docs.rs/getrandom/latest/getrandom/#webassembly-support. We don't know exactly what broke, but this seems like a reasonable fix.
  • Loading branch information
raphlinus committed Sep 19, 2023
1 parent 20fc94c commit 00f1966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/with_winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ console_error_panic_hook = "0.1.7"
console_log = "1"
wasm-bindgen-futures = "0.4.33"
web-sys = { version = "0.3.60", features = [ "HtmlCollection", "Text" ] }
getrandom = { version = "0.2.10", features = ["js"] }

0 comments on commit 00f1966

Please sign in to comment.