-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutable methods in wit resources #178
Comments
This is currently due to the assumption that components allow for being recursively entered. This means that if Rust handed out I believe the most recent iteration of the component model disallows recursively entering a component, though, so a future iteration of wit-bindgen for the updated component model will likely define all methods with |
Oh right! Thanks for all the info. I truly appreciate the hard work you guys are doing. Feel free to close this issue if you think it's not needed, or it can be kept open as a tracker until |
Ok I'll leave this open so when we see this again I can confirm that this change was made or not. |
Ok I'm going to close this in favor of #201 since this is part of the new canonical ABI updates. |
I'm looking into using resources with the following .wit file:
Which generates:
But using the online demo to see the generated rust code for export, the
apply-events
method takes&self
. But what if I want to mutate self with&mut self
, is this possible?The text was updated successfully, but these errors were encountered: