Skip to content

Commit 1a04a23

Browse files
committed
deps: bump js-component-bindgen crate
This updates component bindgen to v2. The newer call generation path relies on host-side task setup. Our generated bindings run inside the SpiderMonkey wasm guest, where the native embedding already manages execution and call lifetimes - that is why this patch introduces embedding adapter for handling calls, returns and borrows locally.
1 parent 4b8d6eb commit 1a04a23

13 files changed

Lines changed: 441 additions & 77 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ jobs:
108108
with:
109109
submodules: recursive
110110

111-
- name: Get StarlingMonkey Commit
111+
- name: Get native engine source hash
112112
id: starlingmonkey-commit
113-
run: echo "STARLINGMONKEY_HASH=$(git submodule status | head -c9 | tail -c8)" >> "$GITHUB_OUTPUT"
113+
# Include the embedding; Git objects avoid checkout line-ending differences.
114+
run: echo "STARLINGMONKEY_HASH=$(git ls-tree -z HEAD -- StarlingMonkey embedding | git hash-object --stdin)" >> "$GITHUB_OUTPUT"
114115

115116
- uses: actions/cache@v4
116117
id: starlingmonkey-build
@@ -178,9 +179,9 @@ jobs:
178179
steps:
179180
- uses: actions/checkout@v4
180181

181-
- name: Get StarlingMonkey Commit
182+
- name: Get native engine source hash
182183
id: starlingmonkey-commit
183-
run: echo "STARLINGMONKEY_HASH=$(git submodule status | head -c9 | tail -c8)" >> "$GITHUB_OUTPUT"
184+
run: echo "STARLINGMONKEY_HASH=$(git ls-tree -z HEAD -- StarlingMonkey embedding | git hash-object --stdin)" >> "$GITHUB_OUTPUT"
184185

185186
- name: Restore StarlingMonkey build from cache
186187
uses: actions/cache/restore@v4
@@ -223,9 +224,9 @@ jobs:
223224
steps:
224225
- uses: actions/checkout@v4
225226

226-
- name: Get StarlingMonkey Commit
227+
- name: Get native engine source hash
227228
id: starlingmonkey-commit
228-
run: echo "STARLINGMONKEY_HASH=$(git submodule status | head -c9 | tail -c8)" >> "$GITHUB_OUTPUT"
229+
run: echo "STARLINGMONKEY_HASH=$(git ls-tree -z HEAD -- StarlingMonkey embedding | git hash-object --stdin)" >> "$GITHUB_OUTPUT"
229230

230231
- name: Restore StarlingMonkey build from cache
231232
uses: actions/cache/restore@v4

0 commit comments

Comments
 (0)