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

alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

25 releases

new 0.8.19 Jan 15, 2025
0.8.15 Dec 9, 2024
0.8.14 Nov 28, 2024
0.7.7 Jul 8, 2024

#904 in Magic Beans

Download history 42519/week @ 2024-09-28 67120/week @ 2024-10-05 57765/week @ 2024-10-12 60524/week @ 2024-10-19 57465/week @ 2024-10-26 53364/week @ 2024-11-02 46679/week @ 2024-11-09 48924/week @ 2024-11-16 54030/week @ 2024-11-23 57203/week @ 2024-11-30 73680/week @ 2024-12-07 74840/week @ 2024-12-14 38171/week @ 2024-12-21 46939/week @ 2024-12-28 81195/week @ 2025-01-04 80807/week @ 2025-01-11

258,920 downloads per month
Used in 229 crates (2 directly)

MIT/Apache

535KB
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
~90K SLoC