web: Enable web_sys_unstable_apis

Enable web_sys_unstable_apis RUSTFLAGS in .cargo/config.toml.
These are necessary to use WebGPU in the browser, as well as other
features such as clipboard.
This commit is contained in:
Mike Welsh 2021-09-09 14:49:21 -07:00
parent 4c44e27a00
commit df11cd6a04
1 changed files with 2 additions and 0 deletions

2
.cargo/config.toml Normal file
View File

@ -0,0 +1,2 @@
[target.wasm32-unknown-unknown]
rustflags=["--cfg=web_sys_unstable_apis"]