Skip to main content Crate easy_macros Copy item path Source pub use always_context_build ;buildall_syntax_cases all-syntax-casesGenerates exhaustive handler functions for traversing syn AST syntax trees. context _helpersHelper utilities for building procedural macros
Creates a closure that generates context strings for error handling with automatic file and line information. context_internal _helpersHelper utilities for building procedural macros
Macro used by context! macro in easy_macros_helpers crate context_internal2 _helpersHelper utilities for building procedural macros
Macro used by always_context attribute macro fields_get_attributes attributesfields_with_attributes attributesget_attributes attributeshas_attributes attributesparse_macro_input _helpersHelper utilities for building procedural macros
Adjusted version of syn’s parse_macro_input! macro for #[anyhow_result] procedural macro attribute. AttrWithUnknown attributesLow-level attribute parser used internally by the attribute extraction macros. TokensBuilder _helpersHelper utilities for building procedural macros
A builder for accumulating and formatting token streams in procedural macros. CompileErrorProvider _helpersHelper utilities for building procedural macros
Collect and provide error information for expr_error_wrap . expr_error_wrap _helpersHelper utilities for building procedural macros
Wraps an expression in a block that includes compile-time error messages. find_crate _helpersHelper utilities for building procedural macros
Locates a crate in the current Cargo.toml and generates the appropriate path reference. find_crate_list _helpersHelper utilities for building procedural macros
Attempts to find any of multiple crates, returning the path for the first one found. indexed_name _helpersHelper utilities for building procedural macros
Generates a vector of identifiers by appending numeric indices to a base name. readable_token_stream _helpersHelper utilities for building procedural macros
Formats a token stream string by removing unnecessary whitespace while preserving readability. token_stream_to_consistent_string _helpersHelper utilities for building procedural macros
Converts a token stream to a consistent string representation without spaces. add_code add-codeThis is handy for keeping docify -generated examples clean while still
inserting setup/teardown or assertions for tests. add_code_debug add-codealways_context always-contextAutomatically adds .with_context(context!()) to all ? operators that don’t already have context. anyhow_result anyhow-resultEnables procedural macros to return anyhow::Result<TokenStream> for ergonomic error handling.