-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Disable crypto_expressions feature properly for --no-default-features
#10059
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
Disable crypto_expressions feature properly for --no-default-features
#10059
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.
The same reasoning that applies to crypto_expressions would also technically apply to all of the default features in this crate. Should we remove them as well?
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.
I just went through the Cargo.toml files and discovered that the defaults are kinda b0rken in multiple places. I think another ticket would be in order - or else this ticket should be just titled 'fix the expression feature defaults to allow for proper disabling of features' and all the fixes done here.
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.
yes I think we should remove them as well - these are left overs
crypto_expressions properlycrypto_expressions feature properly for --no-default-features
alamb
left a comment
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.
Thank you @phillipleblanc and @Omega359 for the review
I agree that more cleanup in this area would be beneficial, but I also think this PR is a nice cleanup in itself. Thank you 🙏
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.
yes I think we should remove them as well - these are left overs
| [features] | ||
| crypto_expressions = ["datafusion-physical-expr/crypto_expressions"] | ||
| default = ["crypto_expressions", "regex_expressions"] | ||
| default = ["regex_expressions"] |
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.
even the regex_expressions doesn't make much sense here anymore
Which issue does this PR close?
Closes #10058
Rationale for this change
Makes it possible to actually disable the crypto features if they aren't required for a user of DataFusion.
What changes are included in this PR?
In addition to the main change that fixes the issue above, I realized that the
crypto_expressionsfeature was added in two other crates that aren't using it anymore - so I removed them.Are these changes tested?
I tested that building with no default features does actually disable the crypto dependencies.
Are there any user-facing changes?
This could be a breaking change if people disabled the default features and were still using a crypto function. I will lean on the more experienced contributors to weigh in here.