wasm-bindgen/examples/hello_world
Alex Crichton 4aa6793b9e Rewrite the README using Webpack
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.
2018-03-02 20:12:00 -08:00
..
src Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
.gitignore Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
build.sh Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
Cargo.toml Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
index.html Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
index.js Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
package.json Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
README.md Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00
webpack.config.js Rewrite the README using Webpack 2018-03-02 20:12:00 -08:00

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!