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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

27 releases

new 0.8.21 Feb 10, 2025
0.8.19 Jan 15, 2025
0.8.15 Dec 9, 2024
0.8.14 Nov 28, 2024
0.7.7 Jul 8, 2024

#225 in Magic Beans

Download history 59809/week @ 2024-10-21 57704/week @ 2024-10-28 53306/week @ 2024-11-04 45690/week @ 2024-11-11 49384/week @ 2024-11-18 54054/week @ 2024-11-25 59122/week @ 2024-12-02 73610/week @ 2024-12-09 74340/week @ 2024-12-16 38523/week @ 2024-12-23 48275/week @ 2024-12-30 81214/week @ 2025-01-06 99489/week @ 2025-01-13 92168/week @ 2025-01-20 89305/week @ 2025-01-27 95976/week @ 2025-02-03

381,224 downloads per month
Used in 248 crates (2 directly)

MIT/Apache

535KB
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
~91K SLoC