ginpei / try-wasm-rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just a WWW

$ wasm-pack build --target web
$ cd www
$ npm start

Via a bundler

  1. Build
  2. Link the built npm package
  3. Set up the app using the linked package
$ wasm-pack build --target bundler
$ cd pkg
$ npm link
$ cd ../webpack
$ npm ci
$ npm link hello-wasm
$ npm start

Note that the pkg/package.json has a name "hello-wasm" there.

About


Languages

Language:HTML 55.4%Language:JavaScript 33.9%Language:Rust 10.7%