Hi there,
I'm trying to do something rather cursed and it revolves around being able to save and reload the state of a wasm module. Thankfully, the module will be completely off the stack, so saving the callstack isn't necessary, but it does seem to require getting access to mutable globals and other internal state of the wasm instance that isn't exported. I don't believe wasmtime provides a way of probing instances in ways that their contracts shouldn't allow. Is there a way around this without forking?
Wasmtime doesn't have APIs for this at this time, but tools like not useful private url are aimed at assisting this
the idea being that the wasm module is massaged into something that can be introspected after-the-fact
oh oops sorry that's still a work in progress, disregard me...
Thanks for the reply! Yeah, I decided to just use walrus and modify the wasm module as necessary to make it possible to do this. And, it works!
@Lachlan Sneff FYI the repo Alex linked before is public now: https://github.com/bytecodealliance/wizer
Last updated: Nov 22 2024 at 16:03 UTC