@willbooster/tree-sitter-rust 17.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/package.json +6 -6
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -25,8 +25,9 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
25
25
|
|
|
26
26
|
The npm package ships `tree-sitter-rust.wasm` for
|
|
27
27
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
|
|
28
|
-
browsers, and Cloudflare Workers. The parser requires
|
|
29
|
-
|
|
28
|
+
browsers, and Cloudflare Workers. The parser requires `@willbooster/web-tree-sitter` 19.1.1 or later within major
|
|
29
|
+
version 19. Its ABI (`0x5742000c`) rejects upstream Tree-sitter runtimes. Earlier `17.x` and `18.x` WillBooster runtimes
|
|
30
|
+
share ABI `0x5742000c` and pass the ABI check, but dereference unused `TSLanguage` tables that `19.1.0` and later omit.
|
|
30
31
|
|
|
31
32
|
In Node.js and Bun, load the grammar from its path:
|
|
32
33
|
|
|
@@ -70,11 +71,12 @@ The package also ships the node types in `src/node-types.json`.
|
|
|
70
71
|
|
|
71
72
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-rust) and on
|
|
72
73
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
73
|
-
fuzzed with. The parser requires
|
|
74
|
-
`tree-sitter` crate rejects
|
|
74
|
+
fuzzed with. The parser requires `willbooster-tree-sitter` 19.1.1 or later within major version 19. Upstream's
|
|
75
|
+
`tree-sitter` crate rejects its ABI (`0x5742000c`), and earlier `17.x` and `18.x` `willbooster-tree-sitter` releases
|
|
76
|
+
share ABI `0x5742000c` and pass that check, but dereference unused `TSLanguage` tables that `19.1.0` and later omit:
|
|
75
77
|
|
|
76
78
|
```sh
|
|
77
|
-
cargo add willbooster-tree-sitter@
|
|
79
|
+
cargo add willbooster-tree-sitter@19.1.1 --rename tree-sitter
|
|
78
80
|
cargo add willbooster-tree-sitter-rust --rename tree-sitter-rust
|
|
79
81
|
```
|
|
80
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-rust",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Rust grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"@types/bun": "1.4.4",
|
|
49
49
|
"@vitest/browser-playwright": "5.0.5",
|
|
50
50
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
|
-
"@willbooster/wb": "23.0
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
51
|
+
"@willbooster/wb": "23.3.0",
|
|
52
|
+
"@willbooster/web-tree-sitter": "19.1.1",
|
|
53
53
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
54
|
"lefthook": "2.2.2",
|
|
55
|
-
"oxlint": "1.
|
|
55
|
+
"oxlint": "1.90.0",
|
|
56
56
|
"oxlint-tsgolint": "7.0.2005",
|
|
57
57
|
"playwright": "1.64.1",
|
|
58
58
|
"semantic-release": "25.0.9",
|
|
59
59
|
"vite": "8.3.5",
|
|
60
60
|
"vitest": "5.0.5",
|
|
61
|
-
"wrangler": "4.
|
|
61
|
+
"wrangler": "4.156.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@willbooster/web-tree-sitter": "^
|
|
64
|
+
"@willbooster/web-tree-sitter": "^19.1.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|