mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-04 04:22:08 +03:00
e322e6fb8b
There isn't much of a reason to use `Closure::wrap` over `Closure::new` anymore, so this changes `wasm-bindgen`'s examples to use `Closure::new` as the recommended method of creating closures. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
index.html | ||
index.js | ||
package.json | ||
README.md | ||
webpack.config.js | ||
webxr.js |
WebXR Example
View documentation for this example online or View compiled example online
You can build the example locally with:
# Note: Requires unstable flag whilst WebXR in development
$ RUSTFLAGS=--cfg=web_sys_unstable_apis npm run serve
and then visiting http://localhost:8080 in a browser should run the example!