Skip to content
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

Hide implicit optional dependency features in arrow-flight #6806

Conversation

findepi
Copy link
Member

@findepi findepi commented Nov 26, 2024

Which issue does this PR close?

None but was found when working on #6796 / #6804

Rationale for this change

A dependency X marked optional = true implicitly defines a feature X. Docs: https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies This can be seen at https://docs.rs/crate/arrow-flight/53.3.0/features

The optional dependencies were not meant to be standalone features though. Using dep: in the [features] section is supposed to disable this. It is enough to use dep: once. It's used for every optional dependency for consistency.

What changes are included in this PR?

  • remove unintentional implicit features from arrow-flight

Are there any user-facing changes?

yes

cc @alamb

A dependency X marked `optional = true` implicitly defines a feature X.
Docs: https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies
This can be seen at https://docs.rs/crate/arrow-flight/53.3.0/features

The optional dependencies were not meant to be standalone features
though. Using `dep:` in the `[features]` section is supposed to disable
this. It is enough to use `dep:` once. It's used for every optional
dependency for consistency.
@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Nov 26, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@tustvold tustvold merged commit 088e5db into apache:main Nov 27, 2024
13 checks passed
@findepi findepi deleted the findepi/hide-implicit-optional-dependency-features-in-arrow-flight-b66a81 branch November 28, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants