Async func exports unimplemented in bindgen

未關閉
#335 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
rust, wasm
領域
tooling

研究方向

從 spidermonkey-embedding-splicer/src/bindgen.rs 中 485-487 行附近的 FunctionKind match 開始,接著追蹤周圍的匯出路徑,以及它對同步函式的處理方式。完成的標準是,async 的獨立函式、方法和靜態匯出不再命中 todo!(),並且可以處理一個匯出 async 的 WIT world,而不會出現報告中的 panic。

由索引模型根據 Issue 內容生成。

描述

componentize-js 0.20.0 panics with not yet implemented when a WIT world exports an async function, because the export path in spidermonkey-embedding-splicer/src/bindgen.rs hits todo!() for all three async function kinds:

https://github.com/bytecodealliance/ComponentizeJS/blob/main/crates/spidermonkey-embedding-splicer/src/bindgen.rs#L485-L487

FunctionKind::AsyncFreestanding => todo!(),
FunctionKind::AsyncMethod(_id)  => todo!(),
FunctionKind::AsyncStatic(_id)  => todo!(),

This blocks targeting any WIT world whose exports use async func, including the component-model-async style used by wasmtime 43's component-model-async feature and WASI preview 3 worlds that declare async exports.

主要語言
Rust
星號
392
分支
54
平均合併
2 天 18 小時
30 天內合併 PR
3

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

bytecodealliance/ComponentizeJS 的其他 Issue

查看 bytecodealliance/ComponentizeJS 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。