-
Notifications
You must be signed in to change notification settings - Fork 205
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
async: switch to async-fn-in-traits, release v0.2.0-alpha.0 #407
Conversation
r? @eldruin (rust-highfive has picked a reviewer for you, use r? to override) |
4d1a0a7
to
c00fc47
Compare
It seems the 2 issues with |
converted all traits, I haven't tried updating embassy yet, it's still possible it explodes with actual use. |
How are we on this, is this ready to merge? If not I'll use a git-dep to this branch. |
Since AFIT support is very recent in rustc we should check that it works end-to-end first. When we know it works well we can merge it and release it as |
Super, then I know where it stands! |
No longer builds in nightly-2022-10-29 and newer. Filed rust-lang/rust#103850 |
Also, side note: A few places use |
Status update!
So, I'm fairly certain this is ready to go now! |
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.
Looks good to me, thank you!
bors r+
Latest Rust nightlies have somewhat usable async-fn-in-trait support already! 🎉
embassy-nrf updated here embassy-rs/embassy#974
Paprecuts encountered:
Self::Error
. This is a limitation of allasync fn
s, not just in traits, but it hits especially hard within traits, so I dunno if there's plans to improve it.Due to the last 2 I've left
SpiDevice
alone for now.