#solidity #evm #abi #ethereum #encoding #proc-macro

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

2 releases

0.7.4 May 14, 2024
0.7.3 May 14, 2024

#2323 in Magic Beans

Download history 3119/week @ 2024-05-13 6409/week @ 2024-05-20

9,528 downloads per month
Used in 14 crates (via alloy-sol-macro)

MIT/Apache

510KB
13K SLoC

alloy-sol-macro-expander

This crate contains the expansion logic for a Solidity proc_macro2::TokenStream.

It helps convert Solidity tokens to their respective Rust bindings.


lib.rs:

This crate contains the expansion logic for a Solidity proc_macro2::TokenStream. Its used to expand and generate Rust bindings from Solidity.

Note: This is not the procedural macro crate, it is intended to be used as library crate.

This crate is used by sol! macro in alloy-sol-macro crate.

Dependencies

~3–4.5MB
~88K SLoC