-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
Description
It is ideal to try and group common code between lighthouse and anchor.
However, we don't want to pull the entire world of lighthouse for tiny pieces of shared code. Often the solution is modularize lighthouse into small crates or feature-gate components that we need.
In the initial building of Anchor this process has been slow and we have been simply importing lighthouse crates, but at a significant compile time cost.
Using cargo tree can help see some of the larger crates.
Anything that pulls the eth2 crate is too large.
I will try and list crates that we can try and reduce here as we go, but this issue is to try and significantly reduce the dependency tree where we can.
warp_utils in our http_metrics crate is a good example.
Reactions are currently unavailable