© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. M. JainWebAssembly for Cloudhttps://doi.org/10.1007/978-1-4842-7496-5_5

5. waPC

Shashank Mohan Jain1  
(1)
Bangalore, India
 

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 ...

Get WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.