aindustriosa / RustyBugA

Firmware for the MightyBugA line follower done in Rust programming language
MIT License
3 stars 3 forks source link

do we need an external crate for finite state machines? Whitch one? #45

Open punkto opened 1 month ago

punkto commented 1 month ago

https://github.com/mdeloof/statig is a crate that implements FSM using macros that deal with the boiler plate (create the enums, transition handlers). looks good, we should test it or use it as inspiration. In the README of the repo it is explained how it is made.

punkto commented 1 month ago

another crate https://github.com/nano-e/ne-fsm with explanation at https://medium.com/@danny.moghnie/a-simple-state-machine-library-in-rust-2b4f810ec61d