Crate hardlight_macros

source ·

Attribute Macros

  • Takes any ast as an input and annotates it with useful attributes for data serialization and deserialization. This consists of Archive + Serialize + Deserialize, for the root type and CheckBytes for the archived version.
  • This attribute is used to mark a struct as an RPC handler. Currently, this just adds the #[async_trait::async_trait] attribute to the struct.