It should expose a single function:
#[wasm_bindgen] pub fn frame(frame_buffer: &mut [u8], key_down: bool) { // Your code here... }
wasm-pack build