macro_rules! with_task_registry {
($callback:path) => { ... };
}Expand description
Central task registry macro that defines all tasks in a single location.
This macro uses the “callback pattern” - it takes a callback macro name and invokes it with the task registry data. Different consumers can process the same data differently.
§Task Entry Format
Each task is defined as:
TaskName {
output: OutputType, // fully qualified: $crate::domain::tasks::*
adapter: AdapterType, // fully qualified: $crate::domain::adapters::*
input: image,
constructor: constructor_name,
conversion: into_method_name,
name: "snake_case_name",
doc: "Documentation string",
}§Benefits of Fully Qualified Paths
Using $crate:: paths means consumer modules don’t need to import
adapter/output types - the macro expansion includes the full paths.