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

linera-alloy-sol-macro-expander

Expander used in the Solidity to Rust procedural macro

1 unstable release

0.7.4 May 30, 2024

#2525 in Magic Beans

Download history 156/week @ 2024-05-27 101/week @ 2024-06-03 81/week @ 2024-06-10

338 downloads per month
Used in 19 crates (via linera-alloy-sol-macro)

MIT/Apache

515KB
13K SLoC

linera-alloy-sol-macro-expander

This crate contains the expansion logic for a Solidity proc_macro2::TokenStream.

It helps convert Solidity tokens to their respective Rust bindings.


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 linera-alloy-sol-macro crate.

Dependencies

~3–4.5MB
~86K SLoC