mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-13 06:44:13 +03:00
17 lines
492 B
Markdown
17 lines
492 B
Markdown
|
# WebXR Example
|
||
|
|
||
|
[View documentation for this example online][dox] or [View compiled example
|
||
|
online][compiled]
|
||
|
|
||
|
[compiled]: https://rustwasm.github.io/wasm-bindgen/exbuild/webxr/
|
||
|
[dox]: https://rustwasm.github.io/docs/wasm-bindgen/examples/webxr.html
|
||
|
|
||
|
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!
|