Skip to content

Commit

Permalink
chore(rust): don't compile polars-io/polars-ops until selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 24, 2023
1 parent 910dd0c commit 5109085
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
41 changes: 20 additions & 21 deletions crates/polars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ polars-algo = { workspace = true, optional = true }
polars-core = { workspace = true }
polars-io = { workspace = true, optional = true }
polars-lazy = { workspace = true, default-features = false, optional = true }
polars-ops = { workspace = true }
polars-ops = { workspace = true, optional = true, default-features = false }
polars-sql = { workspace = true, optional = true }
polars-time = { workspace = true, optional = true }

Expand All @@ -34,11 +34,11 @@ features = ["js"]
[features]
sql = ["polars-sql"]
rows = ["polars-core/rows"]
simd = ["polars-core/simd", "polars-io/simd", "polars-ops/simd"]
simd = ["polars-core/simd", "polars-io?/simd", "polars-ops?/simd"]
avx512 = ["polars-core/avx512"]
nightly = ["polars-core/nightly", "polars-ops/nightly", "simd", "polars-lazy?/nightly"]
nightly = ["polars-core/nightly", "polars-ops?/nightly", "simd", "polars-lazy?/nightly"]
docs = ["polars-core/docs"]
temporal = ["polars-core/temporal", "polars-lazy?/temporal", "polars-io/temporal", "polars-time"]
temporal = ["polars-core/temporal", "polars-lazy?/temporal", "polars-io?/temporal", "polars-time"]
random = ["polars-core/random", "polars-lazy?/random"]
default = [
"docs",
Expand All @@ -55,8 +55,8 @@ serde-lazy = [
"polars-core/serde-lazy",
"polars-lazy?/serde",
"polars-time?/serde",
"polars-io/serde",
"polars-ops/serde",
"polars-io?/serde",
"polars-ops?/serde",
]
parquet = ["polars-io", "polars-core/parquet", "polars-lazy?/parquet", "polars-io/parquet", "polars-sql?/parquet"]
async = ["polars-lazy?/async"]
Expand All @@ -73,7 +73,7 @@ lazy = ["polars-core/lazy", "polars-lazy"]
strings = ["polars-core/strings", "polars-lazy?/strings", "polars-ops/strings"]

# support for ObjectChunked<T> (downcastable Series of any type)
object = ["polars-core/object", "polars-lazy?/object", "polars-io/object"]
object = ["polars-core/object", "polars-lazy?/object", "polars-io?/object"]

# support for arrows json parsing
json = ["polars-io", "polars-io/json", "polars-lazy?/json", "polars-sql?/json", "dtype-struct"]
Expand All @@ -98,7 +98,7 @@ performant = [
"dtype-u16",
"dtype-struct",
"cse",
"polars-ops/performant",
"polars-ops?/performant",
"streaming",
"fused",
]
Expand Down Expand Up @@ -126,8 +126,8 @@ dot_product = ["polars-core/dot_product"]
concat_str = ["polars-core/concat_str", "polars-lazy?/concat_str"]
row_hash = ["polars-core/row_hash", "polars-lazy?/row_hash"]
reinterpret = ["polars-core/reinterpret"]
decompress = ["polars-io/decompress"]
decompress-fast = ["polars-io/decompress-fast"]
decompress = ["polars-io?/decompress"]
decompress-fast = ["polars-io?/decompress-fast"]
mode = ["polars-core/mode", "polars-lazy?/mode"]
take_opt_iter = ["polars-core/take_opt_iter"]
extract_jsonpath = [
Expand Down Expand Up @@ -170,7 +170,7 @@ list_to_struct = ["polars-ops/list_to_struct", "polars-lazy?/list_to_struct"]
list_count = ["polars-ops/list_count", "polars-lazy?/list_count"]
list_take = ["polars-ops/list_take", "polars-lazy?/list_take"]
describe = ["polars-core/describe"]
timezones = ["polars-core/timezones", "polars-lazy?/timezones", "polars-io/timezones"]
timezones = ["polars-core/timezones", "polars-lazy?/timezones", "polars-io?/timezones"]
string_justify = ["polars-lazy?/string_justify", "polars-ops/string_justify"]
string_from_radix = ["polars-lazy?/string_from_radix", "polars-ops/string_from_radix"]
arg_where = ["polars-lazy?/arg_where"]
Expand Down Expand Up @@ -238,26 +238,25 @@ dtype-slim = [
dtype-date = [
"polars-core/dtype-date",
"polars-lazy?/dtype-date",
"polars-io/dtype-date",
"polars-io?/dtype-date",
"polars-time?/dtype-date",
"polars-core/dtype-date",
"polars-ops/dtype-date",
"polars-ops?/dtype-date",
]
dtype-datetime = [
"polars-core/dtype-datetime",
"polars-lazy?/dtype-datetime",
"polars-io/dtype-datetime",
"polars-io?/dtype-datetime",
"polars-time?/dtype-datetime",
"polars-ops/dtype-datetime",
"polars-ops?/dtype-datetime",
]
dtype-duration = [
"polars-core/dtype-duration",
"polars-lazy?/dtype-duration",
"polars-time?/dtype-duration",
"polars-core/dtype-duration",
"polars-ops/dtype-duration",
"polars-ops?/dtype-duration",
]
dtype-time = ["polars-core/dtype-time", "polars-io/dtype-time", "polars-time?/dtype-time", "polars-ops/dtype-time"]
dtype-time = ["polars-core/dtype-time", "polars-io?/dtype-time", "polars-time?/dtype-time", "polars-ops/dtype-time"]
dtype-array = [
"polars-core/dtype-array",
"polars-lazy?/dtype-array",
Expand All @@ -269,21 +268,21 @@ dtype-decimal = [
"polars-core/dtype-decimal",
"polars-lazy?/dtype-decimal",
"polars-ops/dtype-decimal",
"polars-io/dtype-decimal",
"polars-io?/dtype-decimal",
]
dtype-u8 = ["polars-core/dtype-u8", "polars-lazy?/dtype-u8", "polars-ops/dtype-u8"]
dtype-u16 = ["polars-core/dtype-u16", "polars-lazy?/dtype-u16", "polars-ops/dtype-u16"]
dtype-categorical = [
"polars-core/dtype-categorical",
"polars-io/dtype-categorical",
"polars-io?/dtype-categorical",
"polars-lazy?/dtype-categorical",
"polars-ops/dtype-categorical",
]
dtype-struct = [
"polars-core/dtype-struct",
"polars-lazy?/dtype-struct",
"polars-ops/dtype-struct",
"polars-io/dtype-struct",
"polars-io?/dtype-struct",
]

docs-selection = [
Expand Down
1 change: 1 addition & 0 deletions crates/polars/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub use polars_core::utils::NoNull;
pub use polars_io::prelude::*;
#[cfg(feature = "lazy")]
pub use polars_lazy::prelude::*;
#[cfg(feature = "polars-ops")]
pub use polars_ops::prelude::*;
#[cfg(feature = "temporal")]
pub use polars_time::prelude::*;

0 comments on commit 5109085

Please sign in to comment.