-
Notifications
You must be signed in to change notification settings - Fork 258
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
Fix web support. #1155
Fix web support. #1155
Conversation
The default features of `sp-core-hashing` was enabling `std` on `sp-std` which causes issues with some other Substrate crates (`sp-arithmetic`).
User @Neopallium, please sign the CLA here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, nice catch
Thankyou, this looks good to me; if we can remove a feature without breaking anything then it seems like a win!
Out of interest, I am curious to know what sort of issue you encountered? And just to note in case it matters: Substrate crates aren't released automatically at the moment (they were for a while but this is being re-worked), meaning that if you rely on Subxt's substrate crates being compatible with those you're using elsewhere in your project, you'll likely be disappointed due to version mismatches. Often times, I'd suggest just not enabling the "substrate-compat" feature flag at the moment, until we are publishing them again and can maintain some sort of alignment. |
I only started using I maintain the Rust Because of bad web "no_std" support in a lot of the Substrate crates, I have had to re-impl some basic types: One big feature of We used a |
Thanks for the info!
Interesting! I dug a little and didn't get super far, but would be interested to know more about this, ie do you generate code for contracts or write manual interfaces for key contracts? Layering better support for things like contracts on top of the core I also wonder whether there were any major issues with using Subxt that led to you creating your own library? It's the sort of thing I'd love to get feedback on! |
Code is generated (from chain metadata) to support both RPC & Ink! and uses a feature flag I will open an issue to explain how it works a provide snips of generated code to help explain.
I started working on Another feature that I just recently added is support for decoding block events (as json) all the way back to the genesis block of Polymesh, which was tricky since Polymesh first launched with chain metadata v12 and requires a schema file |
The default features of
sp-core-hashing
was enablingstd
onsp-std
which causes issues with some other Substrate crates (sp-arithmetic
).