In Chapter 4, you saw how wasm-bindgen generates stubs to communicate between JavaScript and Rust-based Wasm and vice versa. However, since wasm-bindgen only allows JavaScript as a host, you must look at approaches that allow interoperability between a Rust-based host and a Golang-based host.
This chapter looks at alternative means of achieving communication between different host runtimes and Wasm modules. The host runtime used here is based on Rust, Golang, and Node.js. The approach explains generating Wasm via the waPC toolchain and ...