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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

3 releases

new 0.7.5 Jun 4, 2024
0.7.4 May 14, 2024
0.7.3 May 14, 2024

#2348 in Magic Beans

Download history 3858/week @ 2024-05-14 7552/week @ 2024-05-21 8962/week @ 2024-05-28

20,414 downloads per month
Used in 15 crates (via alloy-sol-macro)

MIT/Apache

515KB
13K SLoC

alloy-sol-macro-expander

This crate contains the expansion logic for a Solidity proc_macro2::TokenStream. It's 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 the alloy-sol-macro crate.

[!WARNING] This crate does not have a stable API, and all exposed functions are subject to change. We reserve the right to make any breaking changes to this crate without notice.


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
~87K SLoC