-
Notifications
You must be signed in to change notification settings - Fork 107
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
Update Tokio to version 1.12.0 #2920
Conversation
I added a testing section: In the tokio rollup PR, make sure that Zebra's dependency tree only has the upgraded tokio version. Also check for duplicates for other dependencies we upgraded. If we have multiple versions, we'll be running multiple executors, and might have other subtle bugs. We can check for duplicates using |
Note: the |
This will break the build because the code isn't ready for the update, but future commits will fix the issues.
Use `futures::stream::StreamExt` instead, because newer versions of Tokio don't have the `stream` feature.
becd6ca
to
4fc5531
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.
lgtm!
Merged through #2994. |
Motivation
This is part of the update to use Tokio version 1 (#2200), and must be merged together with the other PRs.
Newer versions of Tokio have some interesting features, as well as unblocking Zebra from updating other dependencies.
Solution
The Tokio version was updated to 1.12.0. This unfortunately breaks the Zebra build, so this PR can't be merged until other PRs that fix the issues are approved.
One of the fixes is to not use the
StreamExt
trait that was available in Tokio 0.3.6 but isn't available in Tokio 1.12.0. Some usages of that trait need some work, but one of the usages just needs to change the import so it was included in this PR.Review
Anyone from the team can review this, but it shouldn't be merged yet.
Testing
In the tokio rollup PR, make sure that Zebra's dependency tree only has the upgraded tokio version. Also check for duplicates for other dependencies we upgraded.
If we have multiple versions, we'll be running multiple executors, and might have other subtle bugs.
We can check for duplicates using
cargo deny check bans
:https://embarkstudios.github.io/cargo-deny/checks/bans/index.html#use-case---duplicate-version-detection
Reviewer Checklist
Follow Up Work