Skip to content

Conversation

adriangb
Copy link
Contributor

@adriangb adriangb commented Sep 23, 2025

The diff is mostly running cargo fmt on 2024 edition.

@adriangb adriangb mentioned this pull request Sep 23, 2025
Cargo.toml Outdated
Comment on lines 11 to 12
edition = "2021"
edition = "2024"
rust-version = "1.86.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our intention here is rather than enforcing ourselves a rust-version in Cargo.toml, let the datafusion crate enforce it instead. Automatically, because we are depending on datafusion, it's not necessary for us to apply further restrictions on the MSRV.

What we need to do though is to make sure that developers contributing to this project use exactly DataFusion's MSRV, therefore it's important to keep the rust-toolchain.toml file that was introduced in #72.

Any chance to keep the rust-toolchain.toml while changing it to the new 1.86.0 channel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link
Collaborator

@gabotechs gabotechs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! just some minor comments, but otherwise very grateful for this 😄


impl DistributedCodec {
pub fn new_combined_with_user(cfg: &SessionConfig) -> impl PhysicalExtensionCodec {
pub fn new_combined_with_user(cfg: &SessionConfig) -> impl PhysicalExtensionCodec + use<> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 use<>. Is this a thing in Rust? no idea what this means

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it means that the lifetime of the returned impl doesn't depend on the &SessionConfig

@@ -1,3 +1,3 @@
[toolchain]
channel = "1.85.1"
channel = "1.86.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Now that I think about it, probably it makes sense to leave this as 1.85.1 in this PR, as this is still running on DataFusion 49, and we need to make sure that both pipelines and developers adhere to support at least 1.85.1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay done

@adriangb
Copy link
Contributor Author

adriangb commented Sep 24, 2025

@gabotechs can you trigger CI so we can see if everything passes?

@gabotechs
Copy link
Collaborator

Nice, thanks @adriangb!

@gabotechs gabotechs merged commit 03aec69 into datafusion-contrib:main Sep 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants