-
Notifications
You must be signed in to change notification settings - Fork 23
Errors when using ethereum-types in no_std context #36
Comments
Ok, I haven't tested but I think we need to explictly use I guess we need something like
|
Thank you, but can you please give me an example how should I use this? |
@niklasad1 Do we actually need the function causing issues in |
@tomusdrw Good question, I will check it out! But it compiles using |
So I have looked a bit at this and the problem is that So, the easiest way to fix this would be [target.'cfg(not(feature = "std"))'.dependencies]
ethbloom = { path = "../ethbloom", version = "0.5.0", default-features = false }
[target.'cfg(feature = "std")'.dependencies]
ethbloom = { path = "../ethbloom", version = "0.5.0"} But, ofcourse this doesn't work yet /cc rust-lang/cargo#2524 So, we need to refactor the features in |
why not include |
Yeah, you are right that's clever submitting PR soon! |
ethereum-types 0.4 is now released which solved this issue! |
When trying to use ethereum-types in no_std context:
ethereum-types = { version = "0.3", default-features = false }
get the following errors:
The text was updated successfully, but these errors were encountered: