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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

18 releases

new 0.8.12 Nov 12, 2024
0.8.11 Nov 5, 2024
0.8.10 Oct 28, 2024
0.8.5 Sep 25, 2024
0.7.4 May 14, 2024

#541 in Magic Beans

Download history 23906/week @ 2024-07-29 28431/week @ 2024-08-05 29325/week @ 2024-08-12 28611/week @ 2024-08-19 30185/week @ 2024-08-26 35386/week @ 2024-09-02 36489/week @ 2024-09-09 36002/week @ 2024-09-16 41338/week @ 2024-09-23 45326/week @ 2024-09-30 66997/week @ 2024-10-07 57590/week @ 2024-10-14 59809/week @ 2024-10-21 57704/week @ 2024-10-28 53389/week @ 2024-11-04 43666/week @ 2024-11-11

217,891 downloads per month
Used in 176 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