diff --git a/core/sys/wasm/README.md b/core/sys/wasm/README.md new file mode 100644 index 000000000..1aaeaa429 --- /dev/null +++ b/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 + + + +``` diff --git a/vendor/wasm/js/dom.odin b/core/sys/wasm/js/dom.odin similarity index 100% rename from vendor/wasm/js/dom.odin rename to core/sys/wasm/js/dom.odin diff --git a/vendor/wasm/js/dom_all_targets.odin b/core/sys/wasm/js/dom_all_targets.odin similarity index 100% rename from vendor/wasm/js/dom_all_targets.odin rename to core/sys/wasm/js/dom_all_targets.odin diff --git a/vendor/wasm/js/events.odin b/core/sys/wasm/js/events.odin similarity index 100% rename from vendor/wasm/js/events.odin rename to core/sys/wasm/js/events.odin diff --git a/vendor/wasm/js/events_all_targets.odin b/core/sys/wasm/js/events_all_targets.odin similarity index 100% rename from vendor/wasm/js/events_all_targets.odin rename to core/sys/wasm/js/events_all_targets.odin diff --git a/vendor/wasm/js/general.odin b/core/sys/wasm/js/general.odin similarity index 100% rename from vendor/wasm/js/general.odin rename to core/sys/wasm/js/general.odin diff --git a/vendor/wasm/js/memory_all_targets.odin b/core/sys/wasm/js/memory_all_targets.odin similarity index 100% rename from vendor/wasm/js/memory_all_targets.odin rename to core/sys/wasm/js/memory_all_targets.odin diff --git a/vendor/wasm/js/memory_js.odin b/core/sys/wasm/js/memory_js.odin similarity index 100% rename from vendor/wasm/js/memory_js.odin rename to core/sys/wasm/js/memory_js.odin diff --git a/vendor/wasm/js/odin.js b/core/sys/wasm/js/odin.js similarity index 100% rename from vendor/wasm/js/odin.js rename to core/sys/wasm/js/odin.js