#ethereum #solidity #evm

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

47 releases (14 stable)

Uses new Rust 2024

1.5.2 Dec 22, 2025
1.4.1 Oct 14, 2025
1.3.0 Jul 22, 2025
1.0.0-rc.1 Mar 26, 2025
0.7.7 Jul 8, 2024

#11 in #evm

Download history 149474/week @ 2025-09-20 157857/week @ 2025-09-27 167824/week @ 2025-10-04 155222/week @ 2025-10-11 167551/week @ 2025-10-18 176615/week @ 2025-10-25 194518/week @ 2025-11-01 185779/week @ 2025-11-08 174584/week @ 2025-11-15 195561/week @ 2025-11-22 211505/week @ 2025-11-29 218303/week @ 2025-12-06 203212/week @ 2025-12-13 112244/week @ 2025-12-20 104715/week @ 2025-12-27 198668/week @ 2026-01-03

655,566 downloads per month
Used in 710 crates (3 directly)

MIT/Apache

555KB
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–5MB
~90K SLoC