mirror of
https://github.com/yewstack/yew.git
synced 2026-01-18 16:16:48 +00:00
* Make methods static. * Fix a call. * Fix examples. * Fix examples. * Fix rest of examples. * Fix yew-functional. * Fix interval service example. * Fix webgl example. * Fix dialogue service example. * Use `Default` trait instead of `new()` in `npm_and_rest` example. * Use `Default` trait instead of `new()` in `npm_and_rest` example. * Remove use of the `Option` algebraic data type. * Fix clippy warnings.
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