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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

30 releases

new 0.8.24 Mar 21, 2025
0.8.22 Feb 27, 2025
0.8.15 Dec 9, 2024
0.8.14 Nov 28, 2024
0.7.7 Jul 8, 2024

#207 in Magic Beans

Download history 57609/week @ 2024-11-29 68838/week @ 2024-12-06 76205/week @ 2024-12-13 44378/week @ 2024-12-20 42828/week @ 2024-12-27 77755/week @ 2025-01-03 93455/week @ 2025-01-10 94024/week @ 2025-01-17 90058/week @ 2025-01-24 96902/week @ 2025-01-31 108707/week @ 2025-02-07 108657/week @ 2025-02-14 104232/week @ 2025-02-21 105257/week @ 2025-02-28 111074/week @ 2025-03-07 98901/week @ 2025-03-14

435,938 downloads per month
Used in 291 crates (2 directly)

MIT/Apache

540KB
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.

Dependencies

~3.5–5MB
~90K SLoC