reactr
reactr copied to clipboard
feat(api): Add .wit interface
Draft because Reactr does not conform to canonical ABI, so this wit file cannot be used to generate bindings that will "just work."
Do we also plan to have the generation upstreamed here or in the new repo @ospencer ? Can't do much more, without that but the wit
looks alright to me.
What do you mean?
Correct me if I'm wrong but my understanding was that these wit
interfaces are the source that auto-generate the glue code of e.g. suborbital/reactr#272 through wit-bindgen?
If that's correct, I don't think the process of this generation is shared anywhere?
Yes, that's true. I see what you mean. I'm sort of against having an automated process/script to do it since it's unstable and only works for JS because of a hack (and this wit file isn't checked in).
For reference though, the command to generate the JS files is wit-bindgen js --import env.wit
.
Once we do the breaking changes to make bindgen work, we'll definitely have it automated for as many languages as possible.
Sounds good, thanks for elaborating!