ozgunozerk / state-shift

Macros for implementing Type-State-Pattern on your structs and methods
MIT License
206 stars 3 forks source link

🎁 [Feature Request]: Separate macros into their own files #6

Closed ozgunozerk closed 6 days ago

ozgunozerk commented 6 days ago

What is the feature you would like to see?

Right now, all the macros reside in lib.rs due to:

functions tagged with `#[proc_macro_attribute]` must currently reside in the root of the crate

However, by utilizing helper functions, we can eliminate the huge bodies, and make the lib.rs much shorter, and still place each macro to their own respective file for maintainability.