Loading WASM on the local machine
In this section, we are going to build a WASM module, and have our own Rust code load the WASM file and interact with it. We are also going to build a kernel to pass complex data structures over the WASM boundary like what we saw in the JavaScript memory allocation code in the previous section. To carry out this exercise, we are going to need the following file layout:
├── kernel
│ ├── Cargo.toml
│ └── src
│ └── lib.rs
├── wasm-client
│ ├── Cargo.toml
│ └── src
│ └── main.rs
└── wasm-lib
├── Cargo.toml
├── scripts
│ └── build.sh
└── src
└── lib.rs
These workspaces have...