build(deps): bump wasmtime to v36.0.5 LTS#5351
Merged
clason merged 1 commit intorelease-0.26from Feb 20, 2026
Merged
Conversation
Wasmtime v34 introduced breaking ABI changes to `wasmtime_func_t` and `wasmtime_table_t` structures. The `__private` field changed from `size_t` to `void*`, requiring code updates to store complete `wasmtime_func_t` structures instead of raw indices. Changes: - `BuiltinFunctionIndices`: `uint32_t` -> `wasmtime_func_t` - `stdlib_fn_indices`: `uint32_t*` -> `wasmtime_func_t*` - `FunctionDefinition.storage_location`: `uint32_t*` -> `void*` - `get_builtin_extern()`: simplified to return stored func directly - Lexer functions: use temp array for func storage, store table index - Zero-initialize `builtin_fn_indices` so `store_id == 0` sentinel reliably detects missing stdlib exports - Free `lexer_funcs` on error paths in `ts_wasm_store_new` - Remove stale `(uint32_t *)` casts from `lexer_definitions` Co-Authored-By: nzinfo <li.monan@gmail.com> (cherry picked from commit a21ee02)
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.
Wasmtime v34 introduced breaking ABI changes to
wasmtime_func_tandwasmtime_table_tstructures. The__privatefield changed fromsize_ttovoid*, requiring code updates to store completewasmtime_func_tstructures instead of raw indices.Changes:
BuiltinFunctionIndices:uint32_t->wasmtime_func_tstdlib_fn_indices:uint32_t*->wasmtime_func_t*FunctionDefinition.storage_location:uint32_t*->void*get_builtin_extern(): simplified to return stored func directlybuiltin_fn_indicessostore_id == 0sentinelreliably detects missing stdlib exports
lexer_funcson error paths ints_wasm_store_new(uint32_t *)casts fromlexer_definitionsCo-Authored-By: nzinfo li.monan@gmail.com
(cherry picked from commit a21ee02)