wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

Scala.js binding generator

Open vigoo opened this issue 1 year ago • 1 comments

I have implemented a Scala.js binding generator in my fork (https://github.com/vigoo/wit-bindgen-scalajs/pull/1) which genreates Scala code that, when compiled with Scala.js, produces JS code compatible with jco/componentize.js

Is this something that could be merged to the official wit-bindgen codebase? If yes, I will open a pull request.

(Otherwise I'm going to publish the fork as a separate binding generator CLI only for scala.js)

vigoo avatar Feb 07 '25 16:02 vigoo

Hello! I think it'd be reasonable to add here so long as it doesn't add undue burden to developing the other languages. For example it shouldn't introduce large files or new major unconditional runtime deps or something like that. Ideally it also isn't too slow to build/test on CI.

Additionally for now I'd ask that you'd be ok being pinged about any issues, and ok with how it might be disabled temporarily in CI (or broken in the code) if something else urgent needs to land. In such a situation you'd alway be pinged though and given time to fix things before a new release is made or similar.

alexcrichton avatar Feb 09 '25 18:02 alexcrichton