Switch to dynamically loading the memory import from the provided wasm files. Also removes the manual parsing logic for the custom sections.
What does this PR do?
Loads the memory import dynamically from the provided runtime wasm. Further Improves the custom section parsing.
Why are these changes needed?
Defining a static memory import causes runtime init failure when the runtimes change their minimum memory limits.
How were these changes implemented and what do they affect?
They're implemented with the help of this parser.. The memory import is extracted before the initialization of the runtime instance and loaded in its imports.
Description
Switch to dynamically loading the memory import from the provided wasm files. Also removes the manual parsing logic for the custom sections.
What does this PR do? Loads the memory import dynamically from the provided runtime wasm. Further Improves the custom section parsing.
Why are these changes needed? Defining a static memory import causes runtime init failure when the runtimes change their minimum memory limits.
How were these changes implemented and what do they affect? They're implemented with the help of this parser.. The memory import is extracted before the initialization of the runtime instance and loaded in its imports.
Fixes #445
Checklist: