-
Notifications
You must be signed in to change notification settings - Fork 599
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
feat: use edition 2024 #1736
base: main
Are you sure you want to change the base?
feat: use edition 2024 #1736
Conversation
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.
@iajoiner could you take a look at the ci failure? |
@iffyio Yes! |
33a3141
to
c41066d
Compare
@@ -30,7 +30,7 @@ include = [ | |||
"Cargo.toml", | |||
"LICENSE.TXT", | |||
] | |||
edition = "2021" | |||
edition = "2024" |
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.
my only concern is if this will force users of slparser to use newer versions of the rust compiler (as in once we release sqlparser with this change, will it require the use of rust 1.85?)
I haven't studied the implications yet
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.
Oh good point, yeah it does look like MSRV is 1.85 for 2024 edition, did a quick test
In which case I'm thinking this might not be a desirable change to make currently |
🤔 interestingly we don't seem to have an MSRV policy in this crate (at least not that I could find in https://github.com/apache/datafusion-sqlparser-rs/blob/main/README.md) We do have such a thing in DataFusion here: https://github.com/apache/datafusion?tab=readme-ov-file#rust-version-compatibility-policy Maybe it is worth considering adding some documentation / policy in the sqlparser crate too 🤔 |
Adding an MSRV sounds good to me! |
Filed an issue to track: |
The only warning I got was