I'm trying to load a wasm 'plugin' inside another wasm module, both written in rust. To that end, I created a small PoC project with the 'main' wasm app, a 'plugin' wasm app and a simple webserver.
Fortunately the js_sys crate provides me with a tool to fetch and parse wasm binary code. However I cannot access the module or the instance generated by this call. Via the log, I can see, the return type is a JsValue containing an object which matches the specification. I already tried to use serde, but Module and Instance from the js_sys crate are not Deserializable.
It seems, that the behaviour can be accomplished by using a JS wrapper, but I'd like to create a solution entirely in rust.