2018-03-02 20:11:30 -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!
|
2018-03-03 10:46:43 -08:00
|
|
|
|
|
|
|
In Chrome, you'll need to delete hello_world_wasm.wasm after building (or
|
|
|
|
change hello_world.js to import hello_world_wasm.js instead) and uncomment the
|
|
|
|
relevant line in index.js to work around a webpack bug.
|