Macros§
- export_
tokens_ alias - Creates an attribute proc macro that is an alias for
#[export_tokens]
. - export_
tokens_ alias_ no_ emit - Like
#[export_tokens]
but intead creates an alias for#[export_tokens_no_emit]
- forward_
tokens - “Forwards” the tokens of the specified exported item (specified by path as the first arg)
to the specified proc or
macro_rules!
macro (specified by path as the second arg). - forward_
tokens_ verbatim - import_
tokens - Allows you to import the tokens of an external item marked with
#[export_tokens]
whose path is already known at compile-time without having to do any additional parsing.
Attribute Macros§
- export_
tokens - Can be applied to any item. Doing so will make the tokens for this item available for import by the other macros in this crate.
- export_
tokens_ no_ emit - Like
#[export_tokens]
but does not emit the tokens of the attached item locally. - import_
tokens_ attr - 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. - import_
tokens_ attr_ verbatim - import_
tokens_ proc - 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.
- use_
attr Deprecated - Deprecated: No-op
- use_
proc Deprecated - Deprecated: No-op
- with_
custom_ parsing - To be used in tandem with
#[import_tokens_attr]