macro_rules! delegate_and_check_components {
($ctx:ty { $($name:ty => $provider:ty : $provider_trait:path),+ $(,)? }) => { ... };
}Expand description
Wire components and prove each provider implements its capability trait.
Each entry is Component => Provider : ProviderTrait<Ctx>. The trait check
is type-checked at the table entry, so a mis-wiring is reported next to the
choice rather than in the consumer bound that later needs the capability.
ⓘ
delegate_and_check_components!(InteractiveCtx {
ApprovalComponent => PromptApproval : ApprovalProvider<InteractiveCtx>,
SandboxComponent => WorkspaceSandbox : SandboxProvider<InteractiveCtx>,
});