Move vendor:wasm/js to core:sys/wasm/js
This commit is contained in:
1 parent
096258b5d5
commit
634fa7aa30
9 files changed
+15
No files matched your search
@@ -0,0 +1,15 @@
|
|||||||
|
# WASM on the Web
|
||||||
|
|
||||||
|
This directory is for use when targeting the `js_wasm32` target and the packages that rely on it.
|
||||||
|
|
||||||
|
The `js_wasm32` target assumes that the WASM output will be ran within a web browser rather than a standalone VM. In the VM cases, either `wasi_wasm32` or `freestanding_wasm32` should be used accordingly.
|
||||||
|
|
||||||
|
## Example for `js_wasm32`
|
||||||
|
|
||||||
|
```html
|
||||||
|
<!-- Copy `core:sys/wasm/js/odin.js` into your web server -->
|
||||||
|
<script type="text/javascript" src="odin.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
odin.runWasm(pathToWasm, consolePreElement);
|
||||||
|
</script>
|
||||||
|
```
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user