forked from extern/nushell
Make polars deps optional for cargo test --all
(#11415)
As `--workspace/--all` pulls in all crates in the workspace for `cargo test --workspace` let's make sure that the `polars` family of dependencies are also feature gated so they only build for `--features dataframe`. The test modules themselves also depend on the feature. Should speed up a bare `cargo test --workspace`
This commit is contained in:
parent
c1cc1c82cc
commit
7ad0e5541e
@ -26,9 +26,9 @@ num = { version = "0.4", optional = true }
|
|||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
sqlparser = { version = "0.39", optional = true }
|
sqlparser = { version = "0.39", optional = true }
|
||||||
polars-io = { version = "0.35", features = ["avro"], optional = true }
|
polars-io = { version = "0.35", features = ["avro"], optional = true }
|
||||||
polars-arrow = "0.35"
|
polars-arrow = { version = "0.35", optional = true }
|
||||||
polars-ops = "0.35"
|
polars-ops = { version = "0.35", optional = true }
|
||||||
polars-plan = "0.35"
|
polars-plan = { version = "0.35", optional = true }
|
||||||
|
|
||||||
[dependencies.polars]
|
[dependencies.polars]
|
||||||
features = [
|
features = [
|
||||||
@ -65,7 +65,7 @@ optional = true
|
|||||||
version = "0.35"
|
version = "0.35"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
dataframe = ["num", "polars", "polars-io", "sqlparser"]
|
dataframe = ["num", "polars", "polars-io", "polars-arrow", "polars-ops", "polars-plan", "sqlparser"]
|
||||||
default = []
|
default = []
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
Loading…
Reference in New Issue
Block a user