Skip to content

build(deps): bump wasmtime to v36.0.5 LTS#5351

Merged
clason merged 1 commit intorelease-0.26from
backport-5350
Feb 20, 2026
Merged

build(deps): bump wasmtime to v36.0.5 LTS#5351
clason merged 1 commit intorelease-0.26from
backport-5350

Conversation

@clason
Copy link
Contributor

@clason clason commented Feb 20, 2026

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)

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)
@clason clason merged commit d03bb28 into release-0.26 Feb 20, 2026
13 checks passed
@clason clason deleted the backport-5350 branch February 20, 2026 09:52
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