mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Reorganize crates * Remove symlink * Check examples * Cleanup CI scripts * nits * cleanup * cargo fmt * Fix yew-stdweb * cargo clippy --all * stdweb-examples * run_emscripten_checks.sh * Fix typo * fix typo * yew-stdweb * Run tests from yew-stdweb * fix webgl script
22 lines
615 B
Markdown
22 lines
615 B
Markdown
### multi_thread
|
|
|
|
First, build your web app
|
|
|
|
```sh
|
|
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
|
|
|
|
```sh
|
|
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
|
|
|
|
```sh
|
|
python3 -m http.server
|
|
```
|