wat_to_wasm_with_resolver

Function wat_to_wasm_with_resolver 

Source
pub fn wat_to_wasm_with_resolver(
    wat_src: &str,
    resolver: &dyn SyntaxRuleResolver,
) -> Result<Vec<u8>>
Expand description

Converts WebAssembly Text Format (.wat) source into a binary .wasm module using resolver.

ยงErrors

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