Skip to content

feat(tokio_util): Stabilise JoinMap #7075

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

conradludgate
Copy link
Contributor

Motivation

The other day I saw someone asking for JoinMap to be stabalised. I happened to notice just now that the task ID system is now stable in tokio.

Solution

Removes the unstable config requirement for tokio_util::JoinMap.

@conradludgate conradludgate force-pushed the conrad/stabalise-joinmap branch 2 times, most recently from eb9f646 to 5155239 Compare January 6, 2025 15:35
@conradludgate conradludgate changed the title feat: Stabalise JoinMap feat(tokio_util): Stabalise JoinMap Jan 6, 2025
@Darksonn Darksonn added A-tokio-util Area: The tokio-util crate M-task Module: tokio/task labels Jan 6, 2025
@conradludgate conradludgate force-pushed the conrad/stabalise-joinmap branch from 5155239 to 91695b2 Compare January 6, 2025 15:45
@Darksonn Darksonn changed the title feat(tokio_util): Stabalise JoinMap feat(tokio_util): Stabilise JoinMap Jan 8, 2025
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM.


net = ["tokio/net"]
compat = ["futures-io",]
codec = []
time = ["tokio/time","slab"]
io = []
io-util = ["io", "tokio/rt", "tokio/io-util"]
rt = ["tokio/rt", "tokio/sync", "futures-util", "hashbrown"]
rt = ["tokio/rt", "tokio/sync", "futures-util"]
join-map = ["rt", "hashbrown"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be sufficient?

Suggested change
join-map = ["rt", "hashbrown"]
join-map = ["tokio/rt", "hashbrown"]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. The mod task requires the rt feature, but ultimately yes it should work with just tokio/rt

@baxterjo
Copy link

Looks like just merge conflicts at this point?

@conradludgate
Copy link
Contributor Author

Seems I forgot about this. Will check today

@baxterjo
Copy link

Would the change in #7252 preclude a non breaking change in this API? Can we merge this without 7252 then merge in 7252 as an optimization later?

@conradludgate
Copy link
Contributor Author

Would the change in #7252 preclude a non breaking change in this API? Can we merge this without 7252 then merge in 7252 as an optimization later?

Yes, that's my understanding. The only public API change noticeable is removing the S: Clone bound, which is non-breaking

@Darksonn
Copy link
Contributor

I'd like to get #7257 fixed before we stabilize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-util Area: The tokio-util crate M-task Module: tokio/task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants