mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Yew Examples
Running the examples
To start an example, enter its directory and start it with cargo-web:
cargo web start
To run an optimised build instead of a debug build use:
cargo web start --release
The wasm32-unknown-unknown target will be used by default, which is Rust's native WebAssembly target. The Emscripten-based wasm32-unknown-emscripten and asmjs-unknown-emscripten targets are also supported if you tell the cargo-web to build for them using the --target parameter.