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

chore: slim deps #255

Merged
merged 2 commits into from
Apr 30, 2024
Merged

chore: slim deps #255

merged 2 commits into from
Apr 30, 2024

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Apr 29, 2024

Description

Replaces libp2p with libp2p-identity and multiaddr which significantly lowers the amount of dependencies pulled in by the crate. Closes #253

This PR also re-exports those two crates as they are needed to use some of the features introduced by the libp2p feature, so users end up adding the dependency in their tree manually on top. Closes #254

Notes & open questions

Both changes are in their own commits, so I can split it off into two PRs if needed

Change checklist

  • Self-review
  • Documentation updates if relevant
  • Tests if relevant

Slim down the dependency tree by using `libp2p-identity`
and `multiaddr` directly instead of `libp2p` when the
`libp2p` feature is enabled
@AgeManning AgeManning merged commit 567da5b into sigp:master Apr 30, 2024
6 checks passed
@onbjerg onbjerg deleted the onbjerg/slim-deps branch April 30, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-export Multiaddr and Protocol if libp2p enabled reduce libp2p dependencies
2 participants