I am currently thinking about a modular structure of a core crate and possible modular extensions, which reside in different repositories. On compile time, I choose the core crate with one or more modules and build it.
Within the crate, I want to use an Enum of possible operations. However, the module should be able to extend this Enum. The Enum will most likely be
So, I am not quite sure how to tackle this problem. I imagine having to use some macro magic, to combine several enums from several files into one, united Enum at compile time.
Do you have any suggestions or are there existing solutions?