Closed RecursivePineapple closed 10 months ago
I'm not sure if we should include the example, but I added it anyways. Please let me know if it should be removed.
I think this PR can be closed since https://github.com/korken89/smlang-rs/commit/afd8560b5f376d7fc562f3bfa4b77cf0f177df71 (feat: Add derive macros to states and events
) is in
Indeed! I'll close this one. Feel free to reopen if the new changes don't fit your needs @RecursivePineapple
The macro supports derive(Display), but it doesn't support derive(Debug). Added three flags - for Events, States, and StateMachine - to allow this. Also added an example for testing and to show its usage.
A generic derive flag wasn't added, since that didn't match the existing pattern.