-
Notifications
You must be signed in to change notification settings - Fork 298
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
WIT support #657
Comments
This is amazing! Thanks for the links and the work to support I am sure people will find this useful! |
I totally understand. The component model is moving damn fast, I expect I'll have to rewrite quite a lot of all the code from my fork. However, there's just one minor thing that could be done inside of I started to implement it, but then I stopped because 1) I was running out of time for my hackathon 2) I would have broken If you are fine to have this API I would be glad to finish my PR. |
I am a bit confused about this since the |
Sorry, that's entirely my fault... I meant |
It just occured to me that I have never really answered your question. I was just thinking about this |
On Fri I'll take a look at the code I started writing and I'll let you know. I would like to contribute to the project if time permits :) |
@flavio Could you please move this issue to a discussion item? I think a discussion about |
Done, I've created this discussion: #703 |
@flavio Thank you! |
As part of the WebAssembly Component Model proposal, the WIT format is used to describe the interfaces used by components.
There's a cli tool,
wit-bindgen
that can to scaffold the import/export code of a certain component.Currently wit-bindgen can generate export and import code for Wasmtime, but it lacks wasmi support.
In case you're interested, I've created a forked version of wit-bindgen that can generate both import and export code for wasmi.
The code currently lives inside of this repository, under the
wasmi
branch.wit-bindgen is undergoing a lot of changes. I've targeted the
v0.2.0
release, which is the one used by projects like Spin and SpiderLightning.I will not push the code upstream yet, because of all these undergoing changes (see this comment).
I'm opening this issue in case other wasmi users could benefit from using this code.
If you want to see the code in action, you can take a look at this codebase.
The text was updated successfully, but these errors were encountered: