-
Notifications
You must be signed in to change notification settings - Fork 262
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
Support compiling Subxt to WASM #649
Comments
Yeah, it doesn't work at the moment. You would have to disable to |
Blocked on paritytech/scale-decode#4 for now |
And now blocked on getting the right features etc enabled to make the substrate based crates play nicely. So, the goal here should be to dig into the crate features and figure out how to get the library part of Subxt (including the codegen crate ideally; may be good to remove bitvec from here to support this) compiling. This may lead to tweaks in Substrate crates to expose the relevant features. We'll probably need a feature flag like "js" in Subxt which we can use to toggle various Substrate crate features on/off as needed. So, we know what to do, but it may prove to be quite tricky getting this over the line. |
FYI I started working on it, hopefully this will not be blocked by any version releases upstream. |
@Xanewok I forgot to mention that I already have a branch working for WASM that https://github.com/paritytech/subxt/compare/na-wasm-support?expand=1 but I never committed that but did right now just in case it helps you. Perhaps your stuff is better but feel free to use anything from there :P |
My stuff is using a special jsonrpsee branch to have EDIT: fixed again |
Oh, that's great, thanks! |
subxt is not supported in yew. It gives error on
trunk serve
The text was updated successfully, but these errors were encountered: