Async func exports unimplemented in bindgen

Đang mở
#335 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust, wasm
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu trong spidermonkey-embedding-splicer/src/bindgen.rs, tại match của FunctionKind quanh các dòng 485-487, sau đó lần theo đường dẫn export xung quanh và cách nó xử lý các hàm đồng bộ. Hoàn thành khi các export async freestanding, method và static không còn chạm tới todo!() và một WIT world export async có thể được xử lý mà không gặp panic đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
392
Fork
54
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/ComponentizeJS

Tất cả issue của bytecodealliance/ComponentizeJS

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.