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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

17 releases

new 0.8.11 Nov 5, 2024
0.8.10 Oct 28, 2024
0.8.5 Sep 25, 2024
0.8.0 Aug 21, 2024
0.7.4 May 14, 2024

#791 in Magic Beans

Download history 24846/week @ 2024-07-16 24230/week @ 2024-07-23 24909/week @ 2024-07-30 28240/week @ 2024-08-06 29033/week @ 2024-08-13 29068/week @ 2024-08-20 30325/week @ 2024-08-27 37505/week @ 2024-09-03 35012/week @ 2024-09-10 36866/week @ 2024-09-17 42299/week @ 2024-09-24 48531/week @ 2024-10-01 67694/week @ 2024-10-08 57703/week @ 2024-10-15 59856/week @ 2024-10-22 54059/week @ 2024-10-29

250,668 downloads per month
Used in 167 crates (2 directly)

MIT/Apache

525KB
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–5.5MB
~97K SLoC