Skip to content

Would you consider linktime registration of collections #300

@ModProg

Description

@ModProg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions