Skip to main content

assemble_program_with

Function assemble_program_with 

Source
pub fn assemble_program_with(
    program: &CompiledProgram,
    policies: &PolicyRegistry,
    interner: &Interner,
    entries: &HostEntries,
) -> Result<Vec<u8>, WasmLowerError>
Expand description

assemble_program for a host that also enters the module by name beyond main — each component in entries stays in the module (reached from its mount as main reaches the page’s own) and its __mount_<C> is exported under that name. With the default entries this IS assemble_program.