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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

4 releases

new 0.7.6 Jun 10, 2024
0.7.5 Jun 4, 2024
0.7.4 May 14, 2024
0.7.3 May 14, 2024

#1582 in Magic Beans

Download history 1093/week @ 2024-05-09 5029/week @ 2024-05-16 8446/week @ 2024-05-23 10242/week @ 2024-05-30 12485/week @ 2024-06-06

36,877 downloads per month
Used in 16 crates (via alloy-sol-macro)

MIT/Apache

515KB
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.


lib.rs:

This crate contains the expansion logic for a Solidity proc_macro2::TokenStream. Its 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 alloy-sol-macro crate.

Dependencies

~3–4.5MB
~85K SLoC