Skip to content

Commit 81ab5a8

Browse files
committed
wasm: getrandom configuration to support wasm
See https://docs.rs/getrandom/latest/getrandom/#webassembly-support Signed-off-by: Tristram Gräbener <[email protected]>
1 parent fbb2dc3 commit 81ab5a8

File tree

3 files changed

+151
-131
lines changed

3 files changed

+151
-131
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.wasm32-unknown-unknown]
2+
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']

0 commit comments

Comments
 (0)