Compile Rust code to WebAssembly and run it in the Tauri v2 frontend for high-performance computation. Use when offloading CPU-intensive work to WASM in the WebView, deciding between WASM vs IPC for Rust logic, or optimizing frontend performance with Rust-compiled modules.
ALWAYS use this skill when the user mentions:
Trigger phrases include:
cargo install wasm-pack
wasm-pack new my-wasm-lib
wasm-pack build --target web my-wasm-lib
import init, { process_data } from '../my-wasm-lib/pkg';
await init();
const result = process_data(inputBuffer);
tauri wasm, WebAssembly, wasm-pack, Rust wasm, frontend performance