wasm-bindgen/examples/duck-typed-interfaces
2020-07-28 13:09:36 -05:00
..
src [examples] duck-typed-interfaces - port to rust 2018 2018-12-11 08:45:26 +01:00
Cargo.toml Bump to 0.2.66 (#2256) 2020-07-28 13:09:36 -05:00
duck-typed-interfaces.js examples: Add an example of using duck-typed interfaces 2018-09-11 16:29:25 -07:00
index.html examples: Add an example of using duck-typed interfaces 2018-09-11 16:29:25 -07:00
index.js chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1 2019-08-27 18:20:24 +01:00
package.json chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1 2019-08-27 18:20:24 +01:00
README.md Convert all examples to using wasm-pack 2019-01-17 08:37:32 -08:00
webpack.config.js Convert all examples to using wasm-pack 2019-01-17 08:37:32 -08:00

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.