Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Hell #46

Open
AgeManning opened this issue Oct 31, 2024 · 0 comments
Open

Dependency Hell #46

AgeManning opened this issue Oct 31, 2024 · 0 comments
Labels

Comments

@AgeManning
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant