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

feat(core): remove upgrade::transfer module #4788

Merged
merged 6 commits into from
Nov 2, 2023
Merged

Conversation

thomaseizinger
Copy link
Contributor

Description

As described in #4011, these utility functions don't belong in libp2p-core. Users can use quick-protobuf-codec if they need to write varint-prefixed protobuf messages. For writing varint-prefixed bytes, the unsigned-varint crate offers a various codec implementations.

libp2p-core is the base dependency of all other crates. Thus, we should only expose items there that are actually needed by all other crates. For implementation details like how bytes are written, downstream crates (including users) should reach for other crates.

Depends-On: #4787.
Resolves: #4011.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Base automatically changed from refactor/autonat-framed to master November 2, 2023 07:26
core/CHANGELOG.md Outdated Show resolved Hide resolved
@thomaseizinger thomaseizinger marked this pull request as ready for review November 2, 2023 08:07
@thomaseizinger thomaseizinger added send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer. labels Nov 2, 2023
@mergify mergify bot merged commit fab9205 into master Nov 2, 2023
71 checks passed
@mergify mergify bot deleted the refactor/remove-upgrade branch November 2, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: remove upgrade::transfer module
1 participant