-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add no_std support #25
Comments
Ooh thankyou for your branches! I would actually like this, Aah I see, the I'll take a look at those branches! |
About |
Maybe |
Your branches are promising; there's not much to do there I can see! So if you were up for opening a PR, I'd basically love something that did the following:
I'd keep the PR to those things and avoid the rustfmt and other CI things you did in your branches etc offhand so that it's pretty focused, but otherwise that'd be amazing :) |
(and I think this is basically all true for |
Sure thing. Let me clean up a little on my end. One last thing: |
Ah yes; we can't have any github dependencies in the crate (they prevent publishing it), so we'd def need to get scale-bits to no-std first then; I'll have a look at that! |
@haerdib |
That was fast, thank you very much! |
Opened a PR on scale-encode: paritytech/scale-encode#11. Let me know what you think of it, I will adapt on both encode and decode branches, so you don't have to review twice. |
Thank you very much for this crate, it really simplifies the usage for decoding / encoding of Substrate types from metadata. We'd like to use scale-decode (and encode) for the substrate-api-client, but for this we need
no-std
support.I'd happily provide the PR for this, but there are two caveats:
thiserror
is not no-std compatible. AFAIK, there's no simple workarounderror_in_core
is a nightly feature only.So I'm not sure how open you are to a PR in this regard. If you're still interested, I did some work in a fork:
Happy to share and adapt if you see a solution for the caveats above.
The text was updated successfully, but these errors were encountered: