-
Notifications
You must be signed in to change notification settings - Fork 1k
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
core: remove upgrade::transfer
module
#4011
Comments
@thomaseizinger Concerning The objective here is simply to copy paste the |
The The objective is to use the |
Concerning For me, if we want to use |
See #4051 for an example of how we use |
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. Pull-Request: #4788.
Description
This module contains functions for writing and reading varint-prefixed messages. These kind of utility functions do not belong in
libp2p-core
and unnecessarily increase the public API. All of its usages are actually as part of alibp2p_request_response::Codec
.Tasks
quick-protobuf-codec
#4489This issue should be tackled in 4 separate PRs, one for each of the above crates and a fourth one to deprecate all functions in the
upgrade::transfer
module. We can remove them in the next breaking release then.Motivation
Shrink public API of
libp2p-core
and thus avoid unnecessary version bumps in other crates.Are you planning to do it yourself in a pull request?
No.
The text was updated successfully, but these errors were encountered: