-
Notifications
You must be signed in to change notification settings - Fork 224
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
Make rpc::Client and SubscriptionClient traits usable in wasm #1385
Comments
Thanks for the issue and associated PR, looks good! For my own knowledge, would mind going into a bit more detail as to why |
Hi, I'm extremely glad you asked because turns out there was a bit of misunderstanding on my end. It's actually not a wasm32 target-wide issue, but is related to the futures created by |
AFIT is shipping in Rust 1.75, FWIW. That's a couple weeks away and will obsolete |
I'd rather avoid adding one more feature flag for the moment, so let's merge this as-is for now and we can revisit once Rust 1.75 is out and we decide to bump the MSRV. |
Description
Currently it's impossible to implement those traits in wasm as by default
async_trait
imposes theSend
bound. This, however, makes it unusable in wasm. Therefore I propose introducing conditional compilation based on target:Definition of "done"
The text was updated successfully, but these errors were encountered: