There are build tools which can write the WASM bindings for you.