6 lines
386 B
TOML
6 lines
386 B
TOML
|
|
# getrandom 0.3 (pulled by ahash via acadrust) needs this cfg to select its
|
||
|
|
# browser backend on wasm32-unknown-unknown, alongside its `wasm_js` feature
|
||
|
|
# (enabled in Cargo.toml for the wasm target). Without it the web build fails
|
||
|
|
# with "wasm32-unknown-unknown targets are not supported by default".
|
||
|
|
[target.wasm32-unknown-unknown]
|
||
|
|
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']
|