Crate frame_support_procedural_tools

Source
Expand description

Proc macro helpers for procedural macros

Modules§

syn_ext
Extension to syn types, mainly for parsing

Functions§

clean_type_string
generate_access_from_frame_or_crate
Generate the crate access for the crate using 2018 syntax.
generate_crate_access
Generates the access to the frame-support crate.
generate_hidden_includes
Generates the hidden includes that are required to make the macro independent from its scope.
get_cfg_attributes
Return all cfg attributes literals found.
get_doc_literals
Return all doc attributes literals found.
is_using_frame_crate
Check if a path is using the frame crate or not.

Derive Macros§

Parse
self defined parsing struct. not meant for any struct, just for fast parse implementation.
ToTokens
self defined parsing struct or enum. not meant for any struct/enum, just for fast parse implementation. For enum: it only output fields (empty field act as a None).