Skip to main content

run_import_hooks

Function run_import_hooks 

Source
fn run_import_hooks(
    hooks: &[Arc<dyn InstantiationHook>],
    module: &Module,
    store: &mut StoreMut<'_>,
    imports: &mut Imports,
) -> Result<Vec<InstantiationState>>
Expand description

Runs the import phase of hooks, updating the complete import object and returning the per-hook states aligned by index with hooks.