Skip to content

Commit 0bf3767

Browse files
authored
fix: make the sql feature truly optional (#20625)
## Which issue does this PR close? N/A ## Rationale for this change When enabling the `recursive_protection` feature for the `datafusion` crate, the `sql` feature is enabled. This is undesirable if the downstream project would like the `sql` feature to be off. ## What changes are included in this PR? Use the `?` syntax for features of dependencies for `recursive_protection`. This was already correctly done for other features such as `unicode_expressions`. <https://doc.rust-lang.org/cargo/reference/features.html> ## Are these changes tested? N/A ## Are there any user-facing changes? This makes dependency management better for downstream projects and is not a breaking change.
1 parent 12314c5 commit 0bf3767

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

datafusion/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ recursive_protection = [
8888
"datafusion-optimizer/recursive_protection",
8989
"datafusion-physical-optimizer/recursive_protection",
9090
"datafusion-physical-expr/recursive_protection",
91-
"datafusion-sql/recursive_protection",
92-
"sqlparser/recursive-protection",
91+
"datafusion-sql?/recursive_protection",
92+
"sqlparser?/recursive-protection",
9393
]
9494
serde = [
9595
"dep:serde",

0 commit comments

Comments
 (0)