-
Notifications
You must be signed in to change notification settings - Fork 353
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 tonic
and prost
#6847
Upgrade tonic
and prost
#6847
Conversation
a20312a
to
f3853e5
Compare
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.
Reviewed 2 of 8 files at r1, 12 of 14 files at r2, 7 of 7 files at r3, 4 of 4 files at r4, 3 of 3 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
d3e819e
to
583cb9a
Compare
Also regroup networking-related crates
Upgrading `tonic` is a prerequisite to later on upgrading `hyper` to version 1.0. As of version 1.0, `hyper` no longer uses `tokio`s `AsyncWriter` and `AsyncReader` traits, instead defining its own versions, see <hyperium/hyper#3110>. As tonic `0.12` is updated to use the `hyper 1.0` ecosystem, it changed some of its trait-bounds to the new `hyper` traits. The `hyper-utils` crate provides the wrapper `TokioIo`, which converts between the two. `prost` had to be upgraded as well, for compatibility.
583cb9a
to
cb234d5
Compare
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.
Reviewed 3 of 3 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewed 11 of 14 files at r2, 5 of 7 files at r3, 4 of 4 files at r4, 1 of 3 files at r5, 3 of 3 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Upgrade
tonic
to version 0.12, as a prerequisite to later on upgradinghyper
.As of version 1,
hyper
no longer uses tokiosAsyncWriter
andAsyncReader
traits, instead defining its own versions, see hyperium/hyper#3110. As tonic0.12
is updated to use thehyper 1.0
ecosystem, it changed some of its trait-bounds to the newhyper
traits. Thehyper-utils
crate provides the wrapperTokioIo
, which converts between the two.prost
had to be upgraded as well, for compatibility.This change is