Stream: wit-bindgen

Topic: ✔ get package name from WorldKey/WorldItem ?


view this post on Zulip Scott Waye (Sep 18 2023 at 23:39):

In the runtime test main.rs I would like to get the package name, e.g. test:strings. Is it possible from WorldKey or WorldItem ?

view this post on Zulip Alex Crichton (Sep 19 2023 at 00:03):

From WorldKey you'd check to see if it's Interface and the look up the package name of it's package

view this post on Zulip Alex Crichton (Sep 19 2023 at 00:03):

Otherwise it's not package associated and it's a free item

view this post on Zulip Notification Bot (Sep 19 2023 at 00:04):

Scott Waye has marked this topic as resolved.

view this post on Zulip Scott Waye (Sep 19 2023 at 00:04):

I see, thanks


Last updated: Dec 23 2024 at 12:05 UTC