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?
Ah nvm looks like the inlined types are just available on the imports
field... Should render this unnecessary.
Daniel Macovei has marked this topic as resolved.
Last updated: Dec 23 2024 at 12:05 UTC