korken89 / smlang-rs

A State Machine Language DSL procedual macro for Rust
Apache License 2.0
193 stars 28 forks source link

Feature: Add macro flags for derive(Debug). #65

Closed RecursivePineapple closed 10 months ago

RecursivePineapple commented 1 year ago

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.

RecursivePineapple commented 1 year 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.

maximeborges commented 10 months ago

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

ryan-summers commented 10 months ago

Indeed! I'll close this one. Feel free to reopen if the new changes don't fit your needs @RecursivePineapple