Function generate_rust_host_code

Source
pub fn generate_rust_host_code(m: &Manifest) -> Result<String, Box<dyn Error>>
Expand description

Renders the Rust (Wasmtime) host adapter source for a manifest: a <Name>HostFunctions struct with a builder for wiring typed handler closures into a Wasmtime linker. Validates the manifest first.