polywrap_wasm.linker.wrap_linker module

This module contains the linker for all wrap imports.

class polywrap_wasm.linker.wrap_linker.WrapLinker(linker: Linker, wrap_imports: WrapImports)[source]

Bases: WrapAbortLinker, WrapDebugLinker, WrapEnvLinker, WrapGetImplementationsLinker, WrapInvokeLinker, WrapSubinvokeLinker, WrapSubinvokeImplementationLinker

Linker for the Wrap Wasm module.

This class is responsible for linking all the Wasm imports to the Wasm module.

Parameters:
  • linker – The Wasm linker instance.

  • wrap_imports – The Wasm imports instance.

linker

The Wasm linker instance.

Type:

wasmtime._linker.Linker

wrap_imports

The Wasm imports instance.

Type:

polywrap_wasm.imports.wrap_imports.WrapImports

Link all the Wasm imports to the Wasm module.