#ethereum #solidity #sol #evm #abi

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

34 releases (2 stable)

new 1.1.0 Apr 30, 2025
1.0.0-rc.1 Mar 26, 2025
0.8.25 Mar 26, 2025
0.8.15 Dec 9, 2024
0.7.7 Jul 8, 2024

#76 in Magic Beans

Download history 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 110944/week @ 2025-03-07 119290/week @ 2025-03-14 117257/week @ 2025-03-21 110525/week @ 2025-03-28 122121/week @ 2025-04-04 100887/week @ 2025-04-11 108353/week @ 2025-04-18 102250/week @ 2025-04-25

454,174 downloads per month
Used in 396 crates (3 directly)

MIT/Apache

545KB
14K 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
~93K SLoC