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
feature: support WasmEdge #2094
Comments
what's the blocker here exactly? because everything compiles to wasm, see wasm example. |
thank you for your reply The problem is that wasm-bindgen imports some host functions that wasmedge doesn't. |
For anyone still interested here're what's missing to make
As per Can be dropped ws_stream_wasm = "0.7"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4" These 3 are only necessary if you use ethers websocket implementation or built-in http (which depends on Can be gated under features to only be used explicitly (but note that this means that a user needs to implement custom web-sys = { version = "0.3", features = ["console"] }
wasm-timer = "0.2"
# this is currently necessary for `wasm-timer::Delay` to work
parking_lot = { version = "0.11", features = ["wasm-bindgen"] } These dependencies are needed to enable sleeping when polling transaction or waiting on filters: ethers-rs/ethers-providers/src/utils.rs Lines 34 to 40 in f9086e7
This can only be dropped for
No good solution here I'd conclude that disabling the above defeats the whole purpose of async code and requires too much hustle for a mere typing. My proposal would be to close the issue. |
Is your feature request related to a problem? Please describe.
I want to use ethers-rs on WasmEdge runtime.
Describe the solution you'd like
Supports the
features
to compile to wasm that can run on WasmEdge.In order to achieve this, some parts that may need to be changed:
reqwest
=> http_req_wasiwasm-bindgen
not sure.
Describe alternatives you've considered
For now, I use ethers-xxx (ethers-core, ethers-signers), no provider.
The text was updated successfully, but these errors were encountered: