Skip to content

Add Go bindings for DefineUnknownImportsAsTraps and DefineUnknownImportsAsDefaultValues#274

Open
effulgentsia wants to merge 1 commit intobytecodealliance:mainfrom
effulgentsia:linker-additions
Open

Add Go bindings for DefineUnknownImportsAsTraps and DefineUnknownImportsAsDefaultValues#274
effulgentsia wants to merge 1 commit intobytecodealliance:mainfrom
effulgentsia:linker-additions

Conversation

@effulgentsia
Copy link
Contributor

This PR adds Go bindings for the wasmtime_linker_define_unknown_imports_as_traps() and wasmtime_linker_define_unknown_imports_as_default_values() C API functions.

My use case for wanting this is to be able to use the minimal Wasmtime build (which doesn't include WASI) to run wasm modules that import WASI functions. The code paths I'm calling don't actually reach the WASI functions, but the Wasmtime linker requires all imports to be defined anyway, which these functions help satisfy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant