Crate alloy_sol_macro_input

source ·
Expand description

This crate contains inputs to the sol! macro. It sits in-between the sol-macro and syn-solidity crates, and contains an intermediate representation of Solidity items. These items are then expanded into Rust code by the alloy-sol-macro crate.

This crate is not meant to be used directly, but rather is a tool for writing macros that generate Rust code from Solidity code.

Structs§

  • #[sol(...)] attributes.
  • Parsed input for sol!-like macro expanders. This struct represents a list of expandable items parsed from either solidity code snippets, or from a JSON abi.

Enums§

  • Parsed input for sol!-like macro expanders. This enum represents a Sol file, a JSON ABI, or a Solidity type.

Traits§

Functions§

  • Returns an iterator over all the rust :: paths in the #[derive(...)] attributes.
  • Flattens all the #[doc = "..."] attributes into a single string.
  • Wraps the argument in a doc attribute.