Generate Rust WebAssembly modules with wasm-bindgen, JS interop, memory management, and browser API access.
Act as a Rust WASM expert. Build a wasm module for [MODULE_PURPOSE]. Use #[wasm_bindgen] for [EXPORTED_FUNCTIONS]. Import JS functions for [BROWSER_APIS]. Manage memory with [ALLOCATION_STRATEGY]. Configure wasm-pack for [BUILD_TARGET] (web, nodejs, bundler). Show JS integration for [HOST_APPLICATION].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
Describe module purpose, exported functions, browser APIs to import, allocation strategy, build target, and host application.
Initial release
Sign in and download this prompt to leave a review.