Update minimum rust version to 1.72#8997
Conversation
| license = { workspace = true } | ||
| authors = { workspace = true } | ||
| rust-version = "1.70" | ||
| rust-version = "1.71" |
There was a problem hiding this comment.
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.
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.
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.
Tracking issue for that in cargo msrv: foresterre/cargo-msrv#590
There was a problem hiding this comment.
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.
Clippy failed on this for me with the updated MSRV so I did what it told me
|
@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_loggerrequires 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?