mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 14:02:06 +03:00
32c611d16d
This commit migrates all our examples to using `wasm-pack build` to compile their code and run `wasm-bindgen`. This should make it a bit easier to understand the examples as there's less to follow during the build step. Webpack projects are all using `@wasm-tool/wasm-pack-plugin` as well so the build step is simple `npm run serve`. Other examples which retain `build.sh` are just using `wasm-pack build` now
313 B
313 B
Duck-Typed Interfaces Example
This directory is an example of using duck-typed JS interfaces with wasm-bindgen
.
You can build and run the example with:
$ npm run serve
and then opening up http://localhost:8080/
in a web browser should show a
smiley face drawn on canvas by Rust and WebAssembly.