Expand description
Procedural macros for RustStream.
Re-exported from the ruststream crate under the macros feature; depend on that rather than
on this crate directly.
Attribute Macros§
- app
- Generates a
mainentry point for aRustStreamservice. - subscriber
- Turns an
async fnhandler into a mountable subscriber definition.
Derive Macros§
- FromRef
- Derives
FromReffor each field of an application-state struct, so#[subscriber]handlers can inject any field withState<FieldType>without a hand-written impl. - Message
- Derives
Messagemetadata: the type name and its doc comment. - OutSlot
- Derives
OutSlotfor a unit struct, making it a slot marker forOut<impl Publisher, Marker>handler parameters. The marker’sNAMEis the struct’s identifier, used by startup errors and test assertions.