tree-sitter.tree-sitter/lib/src
Max Brunsfeld 43623ec9bf
Upgrade to latest wasmtime, improve robustness and perf of wasm-based parsing (#5847)
* build(deps): upgrade wasmtime C API to 48.0.0

Upgrade the Rust and Zig Wasmtime dependencies and enable reference values with the null GC collector.

Wasmtime 48 requires a newer Rust toolchain, whose Clippy version identifies three item helpers that can be const. Mark them const so the workspace continues to pass Clippy with warnings denied.

* feat(benchmark): support Wasm grammars

* perf(wasm): cache language function handles

* fix(wasm): improve validation and failure cleanup

Bounds-check dylink metadata parsing, require exact import and export names, and restore memory and function-table allocation offsets when language loading fails.

* fix(wasm): copy the complete supertype map
2026-08-20 21:02:11 +00:00
..
portable lib: add Solaris support to the portable endian header 2026-04-26 13:23:32 -04:00
unicode Expand on query docs 2019-10-30 10:26:10 -07:00
wasm-stdlib Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
alloc.c fix(lib): include api.h so ts_set_allocator is visible 2024-02-27 09:21:17 -05:00
alloc.h fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h 2026-05-30 21:42:31 -04:00
array.h fix(templates): generated array macros do not compile with C++ 2026-07-08 08:38:37 +00:00
atomic.h Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
error_costs.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
get_changed_ranges.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
get_changed_ranges.h Just call the C lib 'the library' everywhere, don't call it a 'runtime' 2019-01-10 15:22:39 -08:00
host.h Make SubtreeInlineData work on Big-Endian 2021-12-24 16:47:10 +01:00
language.c Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
language.h Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
length.h fix(lib): add saturating subtraction to prevent integer underflow 2024-12-25 04:49:39 -05:00
lexer.c perf(lib): fast path for ASCII characters in ts_lexer__advance 2026-08-14 18:11:27 +02:00
lexer.h chore: cleanup unused code 2025-01-21 01:17:03 -05:00
lib.c Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
node.c Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
parser.c Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
parser.h fix(lib): remove duplicate TSLanguageMetadata typedef (#4268) 2025-03-06 14:14:25 -08:00
point.c feat: add API for editing points and ranges 2025-09-19 17:40:26 -04:00
point.h chore: cleanup unused code 2025-01-21 01:17:03 -05:00
query.c fix(query): correctly set a state's skipped_quantifier flag when a 2026-08-10 23:59:11 -05:00
reduce_action.h Generate node-fields.json file 2019-02-12 11:06:18 -08:00
reusable_node.h Allocate parent nodes together with their child array 2020-10-23 12:15:44 -07:00
stack.c fix(lib): replace raw array accesses with array_get 2025-06-05 00:53:11 -04:00
stack.h docs(comment): misleading/wrong comment stating that initial state TSStateId is 0 rather than 1 2026-07-11 00:49:54 -04:00
subtree.c fix(lib): accumulate error costs through hidden error nodes 2026-08-14 00:51:11 -04:00
subtree.h feat(lib): add state to missing nodes. 2026-08-12 23:39:44 -04:00
tree.c Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
tree.h Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
tree_cursor.c fix(lib): continue search for later named siblings in 2026-08-07 17:54:36 -04:00
tree_cursor.h style(lib): add parameter names in declarations that are missing them 2024-09-27 13:38:08 -04:00
ts_assert.h fix(lib): silence warnings with -Wpedantic 2024-09-27 12:58:26 -04:00
unicode.h lexer: pass code-unit length to U16_NEXT in UTF-16 decoders 2026-04-26 03:38:47 -04:00
wasm_store.c Upgrade to latest wasmtime, improve robustness and perf of wasm-based parsing (#5847) 2026-08-20 21:02:11 +00:00
wasm_store.h style(lib): add parameter names in declarations that are missing them 2024-09-27 13:38:08 -04:00