Hi team, For wit IDL, is that possible also to include &self
in functions of interface for Rust lang? As I'd like to share datas between functions in the WIT.
Are you referring to Wasm guest exports? There is no "self" value associated with those implementations.
You can export resource types from your component, in which case each of the non-static methods will get a &self
parameter in the wit-bindgen
-generated Rust bindings.
Last updated: Nov 22 2024 at 16:03 UTC