Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 20:12:16 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/examples/duck-typed-interfaces/README.md

13 lines
313 B
Markdown
Raw Normal View History

guide: Add section on working with duck-typed interfaces
2018-09-11 16:29:44 -07:00
# Duck-Typed Interfaces Example
examples: Add an example of using duck-typed interfaces
2018-09-11 16:29:25 -07:00
guide: Add section on working with duck-typed interfaces
2018-09-11 16:29:44 -07:00
This directory is an example of using duck-typed JS interfaces with `wasm-bindgen`.
examples: Add an example of using duck-typed interfaces
2018-09-11 16:29:25 -07:00
You can build and run the example with:
```
Convert all examples to using wasm-pack 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
2019-01-08 15:14:15 -08:00
$ npm run serve
examples: Add an example of using duck-typed interfaces
2018-09-11 16:29:25 -07:00
```
and then opening up `http://localhost:8080/` in a web browser should show a
smiley face drawn on canvas by Rust and WebAssembly.
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 72ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API