Closed DaniPopes closed 2 months ago
This significantly reduces the amount of code generated by the rpc macro. I've also taken the liberty to refactor some of the proc macro code to make it more maintainable.
rpc
For example, on the reth-rpc-api crate (just #[rpc(server)]):
reth-rpc-api
#[rpc(server)]
cargo expand
cargo check -p
cargo clean -p
Hey @niklasad1 anything left to do here?
This significantly reduces the amount of code generated by the
rpc
macro. I've also taken the liberty to refactor some of the proc macro code to make it more maintainable.For example, on the
reth-rpc-api
crate (just#[rpc(server)]
):cargo expand
: 156,020 LoCcargo check -p
aftercargo clean -p
: 3.1scargo expand
: 73,276 LoCcargo check -p
aftercargo clean -p
: 1.7s