-
Notifications
You must be signed in to change notification settings - Fork 127
No std rstd #28
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
No std rstd #28
Conversation
|
I suggest to merge although example_contract is broken. If someone wants to use it, I've added a hint |
|
the recent merge commit broke no_std, need to fix this first |
|
no_std fix works |
| pub mod xt_primitives; | ||
|
|
||
| pub extern crate codec; | ||
| pub extern crate log; |
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.
Has this been done for a reason?
I made this for issue #16 . This re-exports the dependencies locally. Making them available in the macro via crate::....
Then third parties using substrate-api-client do not need to import the codec and log dependencies
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.
the reason for removing it is that it breaks no_std
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.
try reexporting conditionally, only if in std environment
|
apart from my comment i think this is ready to merge. |
8fc8952 to
9b53214
Compare
This adds
no_stdsupport. (without depending onsgx_tstd)In order for this to work, I had to fork
substrate-primitivesand enable crypto primitives.This also drops dependency on custom runtime crate.
TODO:
example_contractis broken. blocker: drop dependency of examples on test node_runtime crate #26