Repository navigation
Update wasmtime to 50.0.1 - #394
Merged
martindevans merged 2 commits intoNov 5, 2026
Merged
Conversation
- `wasmtime_component_func_t` gained a pointer field, so the managed mirror grows from 24 to 32 bytes. With the old size every component call read past the struct and crashed the process. - Wasmtime now enables component-model async by default, and that feature requires reference types. `Config.WithReferenceTypes(false)` now also turns component-model async off, so the engine can still be created. - The component text format now requires the `core` keyword in canonical options, e.g. `(memory (core memory $i "memory"))` and `(realloc (core func $i "realloc"))`. Updated the test fixture and the component example.
martindevans
requested changes
Nov 4, 2026
| public static extern void wasmtime_config_wasm_reference_types_set(Handle config, [MarshalAs(UnmanagedType.I1)] bool enable); | ||
|
|
||
| [DllImport(Engine.LibraryName)] | ||
| public static extern void wasmtime_config_wasm_component_model_async_set(Handle config, [MarshalAs(UnmanagedType.I1)] bool enable); |
Member
There was a problem hiding this comment.
I suspect that we probably need to always unconditionally disable component async. The way that wasmtime implements async is incompatible with dotnet :(
Contributor
Author
There was a problem hiding this comment.
Updated to always disabled.
Wasmtime's async implementation isn't compatible with .NET, so the Config constructor turns component-model async off rather than only doing so when reference types are disabled.
martindevans
approved these changes
Nov 5, 2026
martindevans
left a comment
Member
There was a problem hiding this comment.
LGTM! Thanks for working on this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Includes these changes to support the new wasmtime version:
wasmtime_component_func_tgained a pointer field, so the managed mirror grows from 24 to 32 bytes.corekeyword in canonical options, e.g.(memory (core memory $i "memory"))and(realloc (core func $i "realloc")).