refactor!: Move ConnectionId and PendingPoint to libp2p-swarm#3221
refactor!: Move ConnectionId and PendingPoint to libp2p-swarm#3221umgefahren wants to merge 11 commits intolibp2p:no-run-title-as-commandfrom
ConnectionId and PendingPoint to libp2p-swarm#3221Conversation
jxs
left a comment
There was a problem hiding this comment.
Looks good to me, it's just missing the CHANGELOG.md entries and the Cargo.toml bumps
|
Thanks @umgefahren ! This is a breaking change albeit a trivial one. I think we should hold off merging this until we merge something breaking that we definitely want. For one, this is going to save trivial PRs like this one from making a lot of version bumps and changelog entries. Additionally, it allows us to accumulate features in master without breaking changes. Which is a good thing IMO. Thoughts @libp2p/rust-libp2p-maintainers ? |
Don't have a strong opinion but sounds reasonable. |
Given that we know what the next version major will be, we could also create a milestone to plan it. That could also come in handy for deprecations that we've been making: We often open a PR already at the time of deprecating things where we remove the deprecated items. Those could also be added to such a milestone. |
|
This pull request has merge conflicts. Could you please resolve them @umgefahren? 🙏 |
Done! Why is the CI still failing? I thought that was fixed. We should really transition away from protoc... |
|
This pull request has merge conflicts. Could you please resolve them @umgefahren? 🙏 |
|
In case we merge #3196 and thus release a breaking change of |
It is being worked on :) |
thomaseizinger
left a comment
There was a problem hiding this comment.
Please also move PendingPoint as part of this and make it pub(crate).
|
#3196 is merged, thus we can easily include it in the next release cycle if you like @umgefahren. |
Sounds good to me. I have to resolve the merge conflicts first |
|
Friendly ping @umgefahren. I want this for #3254, let me know if you are still working on this, otherwise I'll push it forward! |
|
Please go ahead. I’m still preparing for exams |
ConnectionId and PendingPoint to libp2p-swarm
ConnectionId and PendingPoint to libp2p-swarmConnectionId and PendingPoint to libp2p-swarm
This belongs into `libp2p-core`.
|
Ah damn mergify, can't stack PRs from forks ... |
Description
Both of these are only needed as part of
libp2p-swarm. Them residing inlibp2p-coreis a left-over from whenlibp2p-corestill containedPool.Closes #3200.
Notes
As requested by @thomaseizinger I moved ConnectionId from core to swarm. I also changed every use of the struct from core to swarm.I moved theConnectionIdstruct and changed every relevant use. I also want to talk about the necessity of operator overloading.Links to any relevant issues
Open Questions
None
Change checklist