Stream: wasmtime

Topic: ✔ copying Stored state to memory


view this post on Zulip Guillaume Quintard (Sep 04 2023 at 19:37):

Hi, I've been toying with wasmtime for a few days and have run into something that has me puzzled.
For context, my host has a rust object (couple of fields and a map) and it starts a wasm guest to get some decision, and the logic I went for is:

But then, am I doing something wrong here? I can of course force my way in with pointers, but that seems very dirty for a fairly simple use-case

view this post on Zulip Alex Crichton (Sep 04 2023 at 19:54):

I think you might want data_and_store_mut perhaps?

view this post on Zulip Guillaume Quintard (Sep 05 2023 at 15:02):

ahem, yes, that's it. I should have RTFM'd better. Thank you @Alex Crichton !

view this post on Zulip Notification Bot (Sep 05 2023 at 15:02):

Guillaume Quintard has marked this topic as resolved.


Last updated: Dec 23 2024 at 13:07 UTC