Skip to main content

Module macros

Module macros 

Source

Traits§

Message

Attribute Macros§

component
Declare complete dialect support on a struct with #[instructions { dialects }].
composite
Declare typed device fields and complete capabilities. Legacy section loading is generated without program-image-execution.
dispatch
Adapt an authored execute method to the generated component runtime interface.
observe
Generate effect observer implementations from the annotated methods.

Derive Macros§

Instruction
Derive the bytecode-instruction traits (OpCode, FromBytesWithOpcode, WriteBytes) for an instruction enum.
Message
Mark a runtime-supplied message type with the Message trait.