Comments (5)
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 no_std_async
). I plan on testing it with embassy
but I haven't had a chance yet. Feel free to try it out though :)
from statig.
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 😏.
from statig.
Same here! If I can be of any help let me know.
from statig.
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 statig
that doesn't use async recursion and that should work on no_std
. I've tried making an initial version today and things looked good until I hit rust-lang/rust#100013 and I'm not sure if there's anything I could for the moment to circumvent this issue. So it could be I'll have to wait until this issue is resolved, but the good news is that eventually async
on no_std
should be possible.
from statig.
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!
from statig.
Related Issues (16)
- Add feature matrix support HOT 1
- Allow async functions as state handler or actions HOT 5
- Accessing hardware peripherals from states HOT 2
- Add ability to derive traits on the final state machine HOT 2
- Allow generics to be used in the state machine HOT 5
- Difficulty getting generics in state to compile HOT 3
- Error HOT 1
- Would be awesome to have an attribute that draws an ASCII picture of the resulting tree HOT 3
- Using multiple async state machines in parallel HOT 2
- Multiple refrences with different lifetimes as 'Context' HOT 3
- failed to resolve: could not find `awaitable` in `statig HOT 1
- Is it possible to split state machines across files? HOT 1
- Problem with using StateMachine as Bevy Component HOT 2
- Issue with context lifetimes HOT 5
- Support for nested initial transitions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statig.