Browse Source

Move `vendor:wasm/js` to `core:sys/wasm/js`

gingerBill 11 months ago
parent
commit
634fa7aa30

+ 15 - 0
core/sys/wasm/README.md

@@ -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>
+```

+ 0 - 0
vendor/wasm/js/dom.odin → core/sys/wasm/js/dom.odin


+ 0 - 0
vendor/wasm/js/dom_all_targets.odin → core/sys/wasm/js/dom_all_targets.odin


+ 0 - 0
vendor/wasm/js/events.odin → core/sys/wasm/js/events.odin


+ 0 - 0
vendor/wasm/js/events_all_targets.odin → core/sys/wasm/js/events_all_targets.odin


+ 0 - 0
vendor/wasm/js/general.odin → core/sys/wasm/js/general.odin


+ 0 - 0
vendor/wasm/js/memory_all_targets.odin → core/sys/wasm/js/memory_all_targets.odin


+ 0 - 0
vendor/wasm/js/memory_js.odin → core/sys/wasm/js/memory_js.odin


+ 0 - 0
vendor/wasm/js/odin.js → core/sys/wasm/js/odin.js