-
Notifications
You must be signed in to change notification settings - Fork 22
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
Refactor async functionality for no_std
/no_alloc
#20
Comments
Similarly I would like to use this crate within an rtic project, while I do not need my state machines to be async currently it would be a very nice to have feature in the future 😏. |
Same here! If I can be of any help let me know. |
So I've been thinking about this for a while, and although I initially thought I'd be able to statically allocate the space for the futures, I currently don't see how that could work and frankly I'm not familiar enough with how futures work under the hood to say if it's even possible or not. But! I've also realised recently that I could create an implementation of |
Awesome to hear that you have a refactor in mind to circumvent this issue. Do you plan on pushing that working branch? I'd like to see what direction you plan on taking things. Thanks! |
I found some time to work on this today. I've been able to resolve the bug and now have something that seems to work (code is on |
Looking to continue the discussion from #3 for refactoring the async implementation to work in both
no_std
andno_alloc
environments. In particular, I would like to use this crate within an embassy-rs project.In the previous issue, you said you had thoughts as to how you could statically allocate space for the futures. Do you still view this as a viable approach? I have not had luck in finding this done elsewhere.
The text was updated successfully, but these errors were encountered: