Skip to main content

provides

Attribute Macro provides 

Source
#[provides]
Expand description

#[toolkit::provides(contract = ..., local = ..., transports = [...])] — auto-wire a generated contract client into the host ClientHub.

Applied on a module struct in the provider crate; generates an inherent wire_<contract_snake> async method that validates the contract IR, reads typed wiring config, and registers the appropriate Local/REST/gRPC client. See toolkit_contract_macros::provides for the full attribute surface.