Crate lightyear_macros

source ·
Expand description

Lightyear Derive

Procedural macros to simplify implementation of Lightyear protocol types

Attribute Macros

  • Attribute macro applied to an enum to derive the ComponentProtocol trait for it
  • Attribute macro applied to an enum to derive the MessageProtocol trait for it

Derive Macros

  • Derives the Channel trait for a given struct
  • Derives the Message trait for a given struct