You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes unfortunately the use feature in *.wit files is pretty underbaked, especially around resources, to the point that it probably doesn't really work at all. I was actually just in the process of writing up current issues with wit-bindgen and the use feature is definitely on that list of things that need more work and figuring out.
I've been exploring wit-bindgen lately and was trying to use resources.
Given some
demo.wit
:I can call
wit-bindgen wasmtime -i demo.wit
and get:An outline of the generated code looks like:
However if I create a
demo-import.wit
and then use the resource in that:It does not generate the functions above (when I run
wit-bindgen wasmtime -i demo-import.wit
). An outline of the generated code looks like:Further, I cannot use
wit-bindgen
with both as imports:Am I perhaps using it wrong?
The text was updated successfully, but these errors were encountered: