Stream: wasi

Topic: WIT interface type Resource lacks proper documentation.


view this post on Zulip Joshua Aruokhai (Jun 28 2024 at 11:20):

I find the information regarding the Component model WIT interface Resource quite lacking in https://component-model.bytecodealliance.org/design/wit.html#resources, amd https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md. How can one implement a Guest function that returns a Resource and how does it really work

Repository for design and specification of the Component Model - WebAssembly/component-model

view this post on Zulip Ryan Levick (rylev) (Jun 28 2024 at 12:28):

Which language are you using? Here is documentation on how to use resources from a guest written in Rust. The documentation you pointed to is more for implementors of tooling than end users. (Sorry for the confusion! We need to make this clearer)

view this post on Zulip Joshua Aruokhai (Jun 28 2024 at 14:00):

Ryan Levick (rylev) said:

Which language are you using? Here is documentation on how to use resources from a guest written in Rust. The documentation you pointed to is more for implementors of tooling than end users. (Sorry for the confusion! We need to make this clearer)

Thanks a lot, i have seen it.
I don't thinkall info regarding the usage in a particular language should be in a single file , important info can get lost in a see of information.


Last updated: Nov 22 2024 at 16:03 UTC