lazy request: I understand it that the clone impl on Instance
is cloning only the reference, so the same instance with the same backing memory/globals etc. Is there a way to deep-clone a full Instance
(including all the wasm objects, but the module context too assuming it's Clone
too)?
currently, no, I think the roughest equivalent is re-instantiating the module
if you want the instance's memory and globals etc to be in the same state then you'll have to replay all the same calls after instantiation though
... or you could see if Wizer fits your use case :-p
Last updated: Nov 22 2024 at 16:03 UTC