wat_to_wasm

Function wat_to_wasm 

Source
pub fn wat_to_wasm(wat_src: &str) -> Result<Vec<u8>>
Expand description

Converts WebAssembly Text Format (.wat) source into a binary .wasm module via the canonical .WASM Document Character pipeline (wat -> DcMstring -> .wasm).

ยงErrors

Returns an error if the .wat source fails to parse or assemble into binary WebAssembly.