Expand description
Runtime helpers consumed by #[toolkit::provides].
Kept separate from the proc-macro crate so the generated code references
stable, version-controlled host APIs rather than re-importing them from
toolkit_contract. Provider gears don’t import these directly — the
macro emits paths like ::toolkit::wiring::read_wiring(...).
Functions§
- default_
policy_ stack - Default
PolicyStackapplied to in-process local clients built by#[toolkit::provides]. ContainsTracingPolicyonly; richer stacks can be opted into via thepolicies = [...]macro argument. - policy_
stack_ from - Build a
PolicyStackfrom a list of already-constructed policy instances (the macro emitsBox::new(Policy::default())per entry when the user passespolicies = [...]). - read_
wiring - Read the
ClientWiringfor a single provided contract from the module’s config section.