Skip to content

Dependency Hell #46

@AgeManning

Description

@AgeManning

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions