Function wasmer_compiler::resolve_imports
source · pub fn resolve_imports(
module: &ModuleInfo,
imports: &[VMExtern],
context: &StoreObjects,
finished_dynamic_function_trampolines: &BoxedSlice<FunctionIndex, FunctionBodyPtr>,
memory_styles: &PrimaryMap<MemoryIndex, MemoryStyle>,
_table_styles: &PrimaryMap<TableIndex, TableStyle>
) -> Result<Imports, LinkError>
Expand description
This function allows to match all imports of a ModuleInfo
with concrete definitions provided by
a Resolver
.
If all imports are satisfied returns an Imports
instance required for a module instantiation.