Expand description
SolMacroGen and MultiSolMacroGen
This type encapsulates the logic for expansion of a Rust TokenStream from Solidity tokens. It
uses the expand method from alloy_sol_macro_expander underneath.
It holds info such as path to the ABI file, name of the file and the rust binding being
generated, and lastly the expansion itself, i.e the Rust binding for the provided ABI.
It contains methods to read the json abi, generate rust bindings from the abi and ultimately write the bindings to a crate or modules.
StructsΒ§
ConstantsΒ§
- SERDE_
ARRAY_ πIMPL_ MAX_ LEN - SERDE_
WITH_ πDEP
FunctionsΒ§
- add_
large_ πarray_ serde_ attrs - Adds
serde_withadapters where Serdeβs built-in array implementations stop. - large_
array_ πserde_ adapter - public_
enum_ πnames - qualify_
shadowed_ πsibling_ module_ paths - Qualifies paths to sibling binding modules when a generated item in the current module shadows that module name.
- qualify_
unqualified_ πmodule_ paths - top_
level_ πmodule_ names - write_
mod_ πname