yew/examples/multi_thread
Michal Kawalec eb841bb7cf
Conditially require serialize (#1195)
* conditially require serialize

* we're using a trait alias and a clearer implementation of the constraints

* after merging with separated agent

* no trait aliases :(

* specialized the types for Drop a bit

* added an additional constraint on an agent

* emitted with fmt fixes

* dropped the useless debug constraint on the input

* fix stdweb examples

* dropped unneeded debug constraints

* linter
2020-05-12 16:43:21 +08:00
..
2020-05-12 16:43:21 +08:00

multi_thread

First, build your web app

cargo build --target wasm32-unknown-unknown --bin multi_thread_app
wasm-bindgen --target web --no-typescript --out-dir static/ --out-name app ../../target/wasm32-unknown-unknown/debug/multi_thread_app.wasm

Then, build your web worker

cargo build --target wasm32-unknown-unknown --bin multi_thread_worker
wasm-bindgen --target no-modules --no-typescript --out-dir static/ --out-name worker ../../target/wasm32-unknown-unknown/debug/multi_thread_worker.wasm

Finally, serve the content from the ./static directory

python3 -m http.server