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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

21 releases

0.8.15 Dec 9, 2024
0.8.14 Nov 28, 2024
0.8.10 Oct 28, 2024
0.8.5 Sep 25, 2024
0.7.4 May 14, 2024

#182 in Magic Beans

Download history 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 59810/week @ 2024-10-22 54070/week @ 2024-10-29 52400/week @ 2024-11-05 46331/week @ 2024-11-12 50881/week @ 2024-11-19 55810/week @ 2024-11-26 59539/week @ 2024-12-03 62096/week @ 2024-12-10

236,252 downloads per month
Used in 201 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–5MB
~91K SLoC