I just found https://github.com/dtolnay/linkme and thought that this might allow collections to register themselves at a schema instead of the other way round. (e.g. the derive macro could do this) if no outright support, maybe a way to specify a [fn(&mut Schematic) -> Result] that define_collections would iterate over and execute.
Just an idea, currently don't really have any projects of the scale where it would be beneficial to register collections distributedly.
(though I did forget to register views or collections from time to time, so in the case of a full integration that would have saved me the headache of not understanding why my code not working) :D
I just found https://github.com/dtolnay/linkme and thought that this might allow collections to register themselves at a schema instead of the other way round. (e.g. the derive macro could do this) if no outright support, maybe a way to specify a
[fn(&mut Schematic) -> Result]thatdefine_collectionswould iterate over and execute.Just an idea, currently don't really have any projects of the scale where it would be beneficial to register collections distributedly.
(though I did forget to register views or collections from time to time, so in the case of a full integration that would have saved me the headache of not understanding why my code not working) :D