mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-28 12:32:37 +03:00
4aa6793b9e
Right now Webpack probably has the most mature support for loading wasm modules, so let's show off how to do that! Additionally this commits hello world as an example to the repository. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
build.sh | ||
Cargo.toml | ||
index.html | ||
index.js | ||
package.json | ||
README.md | ||
webpack.config.js |
Hello, World!
This directory is an example of using the #[wasm_bindgen]
macro to create an
entry point that's called from the browser and then displays a dialog.
You can build the example with:
$ ./build.sh
(or running the two commands on Windows manually)
and then opening up index.html
in a web browser should show a dialog!