dcstring_to_wasm_with_resolver

Function dcstring_to_wasm_with_resolver 

Source
pub fn dcstring_to_wasm_with_resolver(
    doc: &DcStr,
    resolver: &dyn SyntaxRuleResolver,
) -> Result<Vec<u8>>
Expand description

Converts a DcStr containing a Dc-WASM program or wasm_routine into a standard binary .wasm module using the supplied SyntaxRuleResolver.

ยงErrors

Returns an error if the document fails strict syntax validation or contains invalid WebAssembly instructions, types, or immediate arguments.