-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update .wit files to allow referencing between host and guest interfaces #271
Comments
My proposal is to
This may need a good bit of reorganizing of the current project structure. I'm frankly unsure what implications moving files around will have (especially in regards to C files currently in the same directory as the |
Thank you for your proposal! Yeah, I'm positive for using the latest WIT spec's import/export to describe the hack in the right way. It looks like wit-bindgen now supports resource feature in C. Also we can use jco to import the component from JS host side. |
Currently, we use
JsValueTransport
to facilitate moving values between the rb-abi-host and rb-abi-guest. Since the introduction of this workaround in #18 (May 2022), the WIT format implemented features such as worlds and import/exports. If we update our .wit files to use these new features I thinkJsValueTransport
would no longer needed because the host and guest .wit can reference each other.The text was updated successfully, but these errors were encountered: