-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Upgrade tokio-util to bytes 0.6 #3052
Conversation
Use poll_read_buf() implementations from tokio proper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -7,7 +7,7 @@ name = "tokio-util" | |||
# - Cargo.toml | |||
# - Update CHANGELOG.md. | |||
# - Create "v0.2.x" git tag. | |||
version = "0.4.0" | |||
version = "0.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be preferable to split this (bump crate version) into separate PRs (but personally either is fine).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mm, we will need a release preparation PR in any case.
This reverts commit fe2b997.
Motivation
Would like to use tokio-util with the latest bytes release (which tokio-0.3 now also depends on).
Solution
In order to make this work, it seems to be required to move
poll_read_buf()
intoAsyncReadExt
rather than duplicating it in tokio-util. This actually seems helpful too, so looks like a win-win to me.