-
Notifications
You must be signed in to change notification settings - Fork 634
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
Cannot use async-await feature with no_std #1807
Comments
Should this be reopened? I'm not quite sure how #1837 addressed this:
Not that making the prng |
#1837 only fixed the compile failure. That said, #1837 made no-std support very easy. #1837 didn't do this because it wasn't clear how much we should support a way that isn't officially supported. Related:
|
Ah, I think what confused me was that it mentioned this issue while it didn't seem to change anything related to that, but I think the answer is that #1815 wasn't quite enough to fix this because of how the futures supercrate enables the macro feature. That makes it more clear as to why this issue was mentioned, sorry about that.
That's true, but not the only way to approach the problem.
Yeah, my intention more than anything was to point out how close it is to supporting no-std, which would put the rest of the burden/blocker purely on upstream rust. It seems reasonable to aim to still generate valid code, or at least export the macros that truly don't require anything from std.
Oh you mentioned it directly, yeah that. |
Attempting to compile a crate depending on
futures
with theasync-await
feature active (forjoin!
andselect!
) fails when the target doesn't havestd
.With the following dependency:
compiling fails for
thumbv7m-none-eabi
with:std
is currently necessary because of the randomness inherent inselect!
, so fixing this will likely overlap with #1805, maybe by providing some way to provide the source of randomness toselect!
.The text was updated successfully, but these errors were encountered: