Skip to content
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

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Upgrade tonic and prost #6847

merged 3 commits into from
Sep 25, 2024

Conversation

Serock3
Copy link
Contributor

@Serock3 Serock3 commented Sep 23, 2024

Upgrade tonic to version 0.12, as a prerequisite to later on upgrading hyper.

As of version 1, hyper no longer uses tokios 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.


This change is Reviewable

@Serock3 Serock3 requested a review from hulthe September 23, 2024 15:26
@Serock3 Serock3 self-assigned this Sep 23, 2024
Copy link

linear bot commented Sep 23, 2024

@Serock3 Serock3 force-pushed the upgrade-to-latest-tonic-012-des-1237 branch 4 times, most recently from a20312a to f3853e5 Compare September 24, 2024 14:04
hulthe
hulthe previously approved these changes Sep 24, 2024
Copy link
Contributor

@hulthe hulthe left a 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: :shipit: complete! all files reviewed, all discussions resolved

@Serock3 Serock3 force-pushed the upgrade-to-latest-tonic-012-des-1237 branch 2 times, most recently from d3e819e to 583cb9a Compare September 25, 2024 07:07
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.
Copy link
Contributor

@hulthe hulthe left a 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: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member

@dlon dlon left a 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: :shipit: complete! all files reviewed, all discussions resolved

@Serock3 Serock3 merged commit 7b54ec3 into main Sep 25, 2024
59 checks passed
@Serock3 Serock3 deleted the upgrade-to-latest-tonic-012-des-1237 branch September 25, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants