foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.35k stars 1.77k forks source link

feat(`forge build`): breakdown contract size to each imported contract / lib size #8415

Open sebastiantf opened 4 months ago

sebastiantf commented 4 months ago

Component

Forge

Describe the feature you would like

During forge build --size, Would be nice to see a contract's full size broken down into steps that each shows the contract size of each imported contract. Would help to figure out which imported contract is contributing most to the final bytecode size

Additional context

No response

mgiagante commented 4 days ago

May I take this one?