Stream: wit-bindgen

Topic: ✔ Iterable world types


view this post on Zulip Daniel Macovei (Jan 15 2024 at 16:49):

Hi all, I've recently been working on tools for analyzing type information in wasm components and came across the following use case. This component used in the jco toolchain doesn't import or export interfaces, but rather directly defines the functions it exports as well as the types those functions use.

After acting on the binary with wit-parser, looking at the World here that is available on the output Resolve, it seems that the only type info captured are the ones that are imported and exported. Would a PR be welcome that adds types defined directly in a world to the struct, assuming I haven't missed some mechanism currently available for doing just that?

view this post on Zulip Daniel Macovei (Jan 15 2024 at 17:50):

Ah nvm looks like the inlined types are just available on the imports field... Should render this unnecessary.

view this post on Zulip Notification Bot (Jan 15 2024 at 17:50):

Daniel Macovei has marked this topic as resolved.


Last updated: Oct 23 2024 at 20:03 UTC