-
-
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
chore: bump MSRV to 1.46 #4254
chore: bump MSRV to 1.46 #4254
Conversation
@@ -9,6 +9,7 @@ name = "tokio" | |||
# - Create "v1.0.x" git tag. | |||
version = "1.14.0" | |||
edition = "2018" | |||
rust-version = "1.46" |
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.
According to this page, this emits a warning on versions older than 1.56.
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.
I don't think this is a problem for the users, because warnings from dependencies will not be displayed. (e.g., syn has been using this field since 1.0.78, but if we build a crate that has syn as a dependency using an older compiler, we will not see the warning.)
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.
Okay. It seems like we don't get any failures in CI due to this warning either.
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.
Motivation seems good to me.
This is one of the preparations for #4135. (mio 0.8 requires Rust 1.46)
This also removes dependency on autocfg.
For MSRV policy:
The Rust 1.46 release is over a year old and meets our MSRV policy.
Debian stable's rustc version is 1.48, Ubuntu's rustc version is 1.53, so this meets MSRV policy requested by Make MSRV "whatever popular distros support" AKA "what oldest supported Firefox ESR requires" #3412.