-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom imports #369
Comments
This is a limitation of the current Once that is in place, it should be possible to thread the imports through the |
It turns out custom imports aren't compatible with the way we do multi-threading. A big part of the I've worked around this in the past by setting up the API so values are passed between threads via Another approach I took in #337 was to create a proxy object which would implement Lines 44 to 66 in ecbb8e6
However, this approach won't work for custom imports because sending messages is an Unfortunately, I think we'll need to close this issue because it doesn't appear possible within the constraints of our current architecture. |
That's ok, thank you for taking a look @Michael-F-Bryan |
Re-opening because this is still a valid feature request. |
I also need this feature for my use case |
Our runtime is half based on WASI with a few custom functions that are specific for blockchains. We use Wasmer-js for the SDK
(And Wasmer-rust for the node). In previous versions of Wasmer-js we could specify extra custom imports (through passing
WebAssembly.instantiate(module, customImports);
). However in the latest Wasmer-js it doesn't seem like we can pass in custom imports anymore.Is this something that will eventually? We are looking to upgrade due the WASIX support.
The text was updated successfully, but these errors were encountered: