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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

20 releases

new 0.8.14 Nov 28, 2024
0.8.13 Nov 26, 2024
0.8.10 Oct 28, 2024
0.8.5 Sep 25, 2024
0.7.4 May 14, 2024

#440 in Magic Beans

Download history 29870/week @ 2024-08-08 27781/week @ 2024-08-15 30182/week @ 2024-08-22 31045/week @ 2024-08-29 38884/week @ 2024-09-05 35637/week @ 2024-09-12 39137/week @ 2024-09-19 41991/week @ 2024-09-26 58067/week @ 2024-10-03 63685/week @ 2024-10-10 59135/week @ 2024-10-17 59447/week @ 2024-10-24 51934/week @ 2024-10-31 50336/week @ 2024-11-07 46805/week @ 2024-11-14 53061/week @ 2024-11-21

212,517 downloads per month
Used in 186 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