2019-02-21 11:49:08 -08:00
|
|
|
# Without a Bundler
|
2018-04-19 07:20:35 -07:00
|
|
|
|
2018-09-20 16:20:42 -07:00
|
|
|
[View documentation for this example online][dox]
|
|
|
|
|
2019-02-21 11:49:08 -08:00
|
|
|
[dox]: https://rustwasm.github.io/wasm-bindgen/examples/without-a-bundler.html
|
2018-04-19 07:20:35 -07:00
|
|
|
|
|
|
|
You can build the example locally with:
|
|
|
|
|
|
|
|
```
|
2019-03-05 12:32:40 -08:00
|
|
|
$ cargo build --target wasm32-unknown-unknown --release
|
|
|
|
$ cargo run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
|
|
|
../../target/wasm32-unknown-unknown/release/without_a_bundler.wasm \
|
|
|
|
--out-dir pkg \
|
2019-03-07 07:33:40 -08:00
|
|
|
--web
|
2018-04-19 07:20:35 -07:00
|
|
|
```
|
2018-09-20 16:20:42 -07:00
|
|
|
|
|
|
|
and then opening `index.html` in a browser should run the example!
|