Macros

Attribute Macros

  • Can be applied to any syn::Item compatible item. Doing so will make the tokens for this item available for import by the other macros in this crate.
  • Like #[export_tokens] but does not emit the tokens of the attached item locally.
  • Can be attached to an attribute proc macro function, causing it to receive the tokens for the external item referred to by the path provided as the attr / first argument to the attribute macro.
  • An attribute macro that can be attached to a proc macro function definition that will cause it to receive the tokens of the external item referred to by its argument as input to your proc macro.
  • Can be used to properly import and re-export attribute macros that were created using import_tokens_attr.
  • Can be used to properly import and re-export proc macros that were created using import_tokens_proc.
  • To be used in tandem with #[import_tokens_attr]