-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use wit-bindgen-go
to generate go bindings given WIT interfaces
#2
Comments
wit-bindgen-go
to generate go bindings given WIT interfaces
I think we'd definitely be in favor of that. We need to make sure that switching to wit-bindgen 0.8 is in working order which is being done in fermyon/spin#1599. I'll try to move the Go SDK over to using the Go support in wit-bindgen in that branch. |
That's great to hear, @rylev ! Let me know if you ran into any issues with the generated bindings and feel free to raise issues to the wit-bindgen repo. |
I think this issue can be closed now in favor of using wasm-tools-go |
Hey there, I just want to throw an idea here and see if you like it.
wit-bindgen 0.8.0
release has the newest WIT syntax that comes with a go-bindgen, which I've contributed to. In addition, it seems to me that preview2 WIT interfaces in Spin are also updated to the newest syntax. It feels nautral to me that we should be starting usingwit-bindgen-go
to generate go bindings and then build a go SDK on top of them. It reduces maintainence cost, and reduces the time to write the bindings manually. The benefit of a SDk is that this could go completely transparent to the users of the Spin Go SDKs.Does this sound like a good idea?
Disclaimer: I am the author of wit-bindgen-go crate in wit-bindgen
The text was updated successfully, but these errors were encountered: