open-contracting / cardinal-rs

Measure red flags and procurement indicators using OCDS data
https://cardinal.readthedocs.io
MIT License
9 stars 3 forks source link

Add option for users to define indicators in their own crate #60

Open jpmckinney opened 1 year ago

jpmckinney commented 1 year ago

Instead of explicitly listing all indicators in the add_indicators! macro call, we can use the inventory crate, like at https://github.com/dtolnay/inventory/issues/21#issuecomment-663159002, so that each trait object registers itself.

Putting as nice-to-have as we have no demand for this yet.

If it makes our own code cleaner, we might consider doing it anyway.

Blocked by https://github.com/dtolnay/inventory/issues/51