Stream: general

Topic: ✔ wasm-tools component wit


view this post on Zulip Christoph Brewing (Jun 29 2023 at 18:44):

Before updating to wasm-tools 1.0.35, given I did wasm-tools component wit mycomponent.wasm I got a list of all functions in my interface. After the update, I merely get data about the package, its world and the contained interface, like

package root:component

world root {
  export decoder:api/decode
}

Is there an option/possibility to show the all information again, including the functions and their signatures?

view this post on Zulip Alex Crichton (Jun 29 2023 at 18:53):

Not currently, this is something I've been meaning but keep forgetting to implement in the tooling though

view this post on Zulip Pat Hickey (Jun 29 2023 at 18:53):

unfortunately not - right now wit has a restriction where a single file can only contain one package

view this post on Zulip Alex Crichton (Jun 29 2023 at 18:54):

the information is all there but it's not printed to the output just yet

view this post on Zulip Pat Hickey (Jun 29 2023 at 18:54):

ah, alex beat me to it. we were discussing this the other day.

view this post on Zulip Notification Bot (Jun 29 2023 at 19:09):

Christoph Brewing has marked this topic as resolved.

view this post on Zulip Christoph Brewing (Jun 29 2023 at 19:11):

:pray: thank you guys. I can confirm that the functionality is there .. I just had problems with one of my functions so I wanted to make sure the component got the right signature when I discovered that the information is missing.


Last updated: Nov 22 2024 at 16:03 UTC