File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
examples/validation-wasm-demo Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,9 @@ xtask = "run --package xtask --"
33
44# circle seems to install cargo packages via ssh:// rather than https://
55[net ]
6- git-fetch-with-cli = true
6+ git-fetch-with-cli = true
7+
8+ # WebAssembly support per https://docs.rs/getrandom/0.3.3/getrandom/#opt-in-backends
9+ # See examples/validation-wasm-demo/Cargo.toml
10+ [target .wasm32-unknown-unknown ]
11+ rustflags = [' --cfg' , ' getrandom_backend="wasm_js"' ]
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ crate-type = ["cdylib"]
88
99[dependencies ]
1010apollo-compiler.path = " ../../crates/apollo-compiler"
11- # https://docs.rs/getrandom/0.2.15/getrandom/index.html#webassembly-support
12- getrandom = { version = " 0.2" , features = [" js" ] }
11+ # https://docs.rs/getrandom/0.3.3/getrandom/index.html#webassembly-support
12+ # Works together with the rustflags configuration in `.cargo/config.toml`
13+ getrandom = { version = " 0.3" , features = [" wasm_js" ] }
1314wasm-bindgen = " 0.2.100"
You can’t perform that action at this time.
0 commit comments