Async func exports unimplemented in bindgen

Open
#335 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust, wasm
Domain
tooling

Research direction

Start in spidermonkey-embedding-splicer/src/bindgen.rs at the FunctionKind match around lines 485-487, then trace the surrounding export path and its handling of synchronous functions. Done means async freestanding, method, and static exports no longer hit todo!() and an async-exporting WIT world can be processed without the reported panic.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Rust
Stars
392
Forks
54
Avg merge
3d 5h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bytecodealliance/ComponentizeJS

All issues in bytecodealliance/ComponentizeJS

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.