-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 minimum rust version to 1.72 #8997
Conversation
datafusion/core/Cargo.toml
Outdated
@@ -27,7 +27,7 @@ homepage = { workspace = true } | |||
repository = { workspace = true } | |||
license = { workspace = true } | |||
authors = { workspace = true } | |||
rust-version = "1.70" | |||
rust-version = "1.71" |
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.
Could we take this opportunity to set this as same as workspace? e.g.
Unless its preferable to keep these separate? (even though they currently are the same)
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.
That is an excellent idea. I vaguely (but perhaps incorrectly) remember something related to releasing was tricky with MSRV -- @andygrove do you remember? Would it be ok to switch the sub crates to use the workspace version?
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.
Done in 9280b7a
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.
Ok, I found out again. The reason the version is replicated is that cargo msrv verify
doesn't support workspace versions
Thus if you do cd datafusion/core && cargo msrv verify
, it fails like
Fetching index
Unable to find key 'package.rust-version' (or 'package.metadata.msrv') in '/Users/andrewlamb/Software/arrow-datafusion/Cargo.toml'
I have fixed that
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.
Tracking issue for that in cargo msrv: foresterre/cargo-msrv#590
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.
Thanks @Jefffrey -- I have added an issue ref as a comment so we don't forget it in the future
Should we upgrade to 1.75 to avoid two upgrades? The latest version of one of our dependencies, |
Going up to the latest stable would be good from my perspective. I think we should decide what our policy is and document it. @comphead 's recent change #9071 documents what the test is but not what the policy is (aka when we will update the value). @Ted-Jiang also filed #8743 Here is my proposal -- I'll a "MSRV policy" ticket with proposal, and we can have a larger community discussion around that. |
Ok, after some more consideration, I propose we change this PR to update to 1.72 to close @Ted-Jiang's #8743 and hopefully unblock ahash updates, and then we have the larger discussion about MSRV policy with the wider community via #9082 |
let mut hasher = SEED.build_hasher(); | ||
other.hash(&mut hasher); | ||
let o = hasher.finish(); | ||
let s = SEED.hash_one(self); |
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.
Clippy failed on this for me with the updated MSRV so I did what it told me
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 thanks @alamb let me know if we need a review for MSRV policy or dscussion
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.
👍
@alamb You missed the cli Dockerfile unfortunately - it's still 1.70 and won't build without bumping up the version. |
Which issue does this PR close?
Closes #8743
NOTE: Update to update to MSRV 1.72 (was 1.71)
Rationale for this change
env_logger
requires rust 1.71: Update env_logger requirement from 0.10 to 0.11 #8944MSRV 1.72 is still 5 months ago: in 2023-08-24 https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1720-2023-08-24
Most recent rust is 1.75: released end of Dec 2023
https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1750-2023-12-28
What changes are included in this PR?
Update Minimum rust version to 1.72
Are these changes tested?
Covered by existing tests
Are there any user-facing changes?