usewasm_bindgen::prelude::*;// Import the \`window.alert\` function from the Web.
#[wasm_bindgen]extern"C"{fnalert(s:&str);}// Export a \`greet\` function from Rust to JavaScript, that alerts a
// hello message.
#[wasm_bindgen]pubfngreet(name:&str){alert(&format!("[rsw] Hello, {}!", name));}