Skip to content

Add support for wasmtime_linker_define_unknown_imports_as_* - #389

Merged
martindevans merged 1 commit into
bytecodealliance:mainfrom
austindrenski:wasmtime_linker_define_unknown_imports_as_
Oct 16, 2026
Merged

martindevans merged 1 commit into
bytecodealliance:mainfrom
austindrenski:wasmtime_linker_define_unknown_imports_as_

Conversation

@austindrenski

Copy link
Copy Markdown
Contributor

wasmtime_linker_define_unknown_imports_as_default_values

/**
 * \brief Ensures that `module` can be instantiated with this linker by defining
 * all functions otherwise missing from this linker to return the 'default' for
 * what that import is.
 */
WASM_API_EXTERN wasmtime_error_t *
wasmtime_linker_define_unknown_imports_as_default_values(
    wasmtime_linker_t *linker, wasmtime_context_t *store,
    const wasmtime_module_t *module);

wasmtime_linker_define_unknown_imports_as_traps

/**
 * \brief Ensures that `module` can be instantiated with this linker by defining
 * all functions otherwise missing from this linker to trap.
 */
WASM_API_EXTERN wasmtime_error_t *
wasmtime_linker_define_unknown_imports_as_traps(
    wasmtime_linker_t *linker, const wasmtime_module_t *module);

Related

@martindevans martindevans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, looks ready to merge.

@martindevans
martindevans force-pushed the wasmtime_linker_define_unknown_imports_as_ branch from c3b3baa to 7c6c134 Compare October 16, 2026 02:24
@martindevans
martindevans merged commit a378251 into bytecodealliance:main Oct 16, 2026
6 checks passed
@austindrenski
austindrenski deleted the wasmtime_linker_define_unknown_imports_as_ branch October 16, 2026 14:15
@austindrenski

Copy link
Copy Markdown
Contributor Author

Thanks @martindevans!

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.

2 participants