Skip to content

Commit

Permalink
Reorder dependencies before features
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Aug 3, 2023
1 parent f19cf7d commit a20e444
Show file tree
Hide file tree
Showing 16 changed files with 166 additions and 153 deletions.
3 changes: 2 additions & 1 deletion crates/polars-arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ repository = { workspace = true }
description = "Arrow interfaces for Polars DataFrame library"

[dependencies]
polars-error = { version = "0.31.1", path = "../polars-error" }

arrow.workspace = true
atoi = { version = "2.0.0", optional = true }
chrono = { version = "0.4", default-features = false, features = ["std"], optional = true }
Expand All @@ -17,7 +19,6 @@ ethnum = { version = "1.3.2", optional = true }
hashbrown.workspace = true
multiversion.workspace = true
num-traits.workspace = true
polars-error = { version = "0.31.1", path = "../polars-error" }
serde = { version = "1", features = ["derive"], optional = true }
thiserror.workspace = true

Expand Down
83 changes: 42 additions & 41 deletions crates/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@ license = { workspace = true }
repository = { workspace = true }
description = "Core of the Polars DataFrame library"

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow", features = ["compute"] }
polars-error = { version = "0.31.1", path = "../polars-error" }
polars-row = { version = "0.31.1", path = "../polars-row" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

ahash.workspace = true
arrow.workspace = true
bitflags.workspace = true
chrono = { version = "0.4", default-features = false, features = ["std"], optional = true }
chrono-tz = { version = "0.8", optional = true }
comfy-table = { version = "7.0.1", optional = true, default_features = false }
either.workspace = true
hashbrown.workspace = true
indexmap.workspace = true
itoap = { version = "1", optional = true, features = ["simd"] }
ndarray = { version = "0.15", optional = true, default_features = false }
num-traits.workspace = true
object_store = { version = "0.6.0", default-features = false, optional = true }
once_cell.workspace = true
rand = { version = "0.8", optional = true, features = ["small_rng", "std"] }
rand_distr = { version = "0.4", optional = true }
rayon.workspace = true
regex = { version = "1.6", optional = true }
# activate if you want serde support for Series and DataFrames
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
smartstring.workspace = true
thiserror.workspace = true
url = { version = "2.3.1", optional = true }
xxhash-rust.workspace = true

[dev-dependencies]
bincode = "1"
serde_json = "1"

[build-dependencies]
version_check = { workspace = true }

[target.'cfg(target_family = "wasm")'.dependencies]
wasm-timer = "0.2.5"

[features]
simd = ["arrow/simd", "polars-arrow/simd"]
nightly = ["simd", "hashbrown/nightly", "polars-utils/nightly", "polars-arrow/nightly"]
Expand Down Expand Up @@ -147,47 +189,6 @@ docs-selection = [
"azure" = ["async", "object_store/azure"]
"gcp" = ["async", "object_store/gcp"]

[dependencies]
ahash.workspace = true
arrow.workspace = true
bitflags.workspace = true
chrono = { version = "0.4", default-features = false, features = ["std"], optional = true }
chrono-tz = { version = "0.8", optional = true }
comfy-table = { version = "7.0.1", optional = true, default_features = false }
either.workspace = true
hashbrown.workspace = true
indexmap.workspace = true
itoap = { version = "1", optional = true, features = ["simd"] }
ndarray = { version = "0.15", optional = true, default_features = false }
num-traits.workspace = true
object_store = { version = "0.6.0", default-features = false, optional = true }
once_cell.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow", features = ["compute"] }
polars-error = { version = "0.31.1", path = "../polars-error" }
polars-row = { version = "0.31.1", path = "../polars-row" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }
rand = { version = "0.8", optional = true, features = ["small_rng", "std"] }
rand_distr = { version = "0.4", optional = true }
rayon.workspace = true
regex = { version = "1.6", optional = true }
# activate if you want serde support for Series and DataFrames
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
smartstring.workspace = true
thiserror.workspace = true
url = { version = "2.3.1", optional = true }
xxhash-rust.workspace = true

[target.'cfg(target_family = "wasm")'.dependencies]
wasm-timer = "0.2.5"

[dev-dependencies]
bincode = "1"
serde_json = "1"

[build-dependencies]
version_check = { workspace = true }

[package.metadata.docs.rs]
# not all because arrow 4.3 does not compile with simd
# all-features = true
Expand Down
73 changes: 37 additions & 36 deletions crates/polars-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,43 @@ license = { workspace = true }
repository = { workspace = true }
description = "IO related logic for the Polars DataFrame library"

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow" }
polars-core = { version = "0.31.1", path = "../polars-core", features = [], default-features = false }
polars-error = { version = "0.31.1", path = "../polars-error", default-features = false }
polars-json = { version = "0.31.1", optional = true, path = "../polars-json" }
polars-time = { version = "0.31.1", path = "../polars-time", features = [], default-features = false, optional = true }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

ahash.workspace = true
arrow.workspace = true
async-trait = { version = "0.1.59", optional = true }
bytes = "1.3.0"
chrono = { version = "0.4", default-features = false, features = ["std"], optional = true }
chrono-tz = { version = "0.8.1", optional = true }
fast-float = { version = "0.2.0", optional = true }
flate2 = { version = "1", optional = true, default-features = false }
futures = { version = "0.3.25", optional = true }
home = "0.5.4"
lexical = { version = "6", optional = true, default-features = false, features = ["std", "parse-integers"] }
lexical-core = { version = "0.8", optional = true }
memchr.workspace = true
memmap = { package = "memmap2", version = "0.5.2", optional = true }
num-traits.workspace = true
object_store = { version = "0.6.0", default-features = false, optional = true }
once_cell = "1"
rayon.workspace = true
regex = "1.6"
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true, default-features = false, features = ["alloc", "raw_value"] }
simd-json = { version = "0.10", optional = true, features = ["allow-non-simd", "known-key"] }
simdutf8 = { version = "0.1", optional = true }
tokio = { version = "1.26.0", features = ["net"], optional = true }
url = { version = "2.3.1", optional = true }

[dev-dependencies]
tempdir = "0.3.7"

[features]
# support for arrows json parsing
json = [
Expand Down Expand Up @@ -57,42 +94,6 @@ partition = ["polars-core/partition_by"]
temporal = ["dtype-datetime", "dtype-date", "dtype-time"]
simd = []

[dependencies]
ahash.workspace = true
arrow.workspace = true
async-trait = { version = "0.1.59", optional = true }
bytes = "1.3.0"
chrono = { version = "0.4", default-features = false, features = ["std"], optional = true }
chrono-tz = { version = "0.8.1", optional = true }
fast-float = { version = "0.2.0", optional = true }
flate2 = { version = "1", optional = true, default-features = false }
futures = { version = "0.3.25", optional = true }
home = "0.5.4"
lexical = { version = "6", optional = true, default-features = false, features = ["std", "parse-integers"] }
lexical-core = { version = "0.8", optional = true }
memchr.workspace = true
memmap = { package = "memmap2", version = "0.5.2", optional = true }
num-traits.workspace = true
object_store = { version = "0.6.0", default-features = false, optional = true }
once_cell = "1"
polars-arrow = { version = "0.31.1", path = "../polars-arrow" }
polars-core = { version = "0.31.1", path = "../polars-core", features = [], default-features = false }
polars-error = { version = "0.31.1", path = "../polars-error", default-features = false }
polars-json = { version = "0.31.1", optional = true, path = "../polars-json" }
polars-time = { version = "0.31.1", path = "../polars-time", features = [], default-features = false, optional = true }
polars-utils = { version = "0.31.1", path = "../polars-utils" }
rayon.workspace = true
regex = "1.6"
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true, default-features = false, features = ["alloc", "raw_value"] }
simd-json = { version = "0.10", optional = true, features = ["allow-non-simd", "known-key"] }
simdutf8 = { version = "0.1", optional = true }
tokio = { version = "1.26.0", features = ["net"], optional = true }
url = { version = "2.3.1", optional = true }

[dev-dependencies]
tempdir = "0.3.7"

[package.metadata.docs.rs]
all-features = true
# defines the configuration attribute `docsrs`
Expand Down
7 changes: 4 additions & 3 deletions crates/polars-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ repository = { workspace = true }
description = "JSON related logic for the Polars DataFrame library"

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow", default-features = false }
polars-error = { version = "0.31.1", path = "../polars-error" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

ahash.workspace = true
arrow.workspace = true
fallible-streaming-iterator = "0.1"
hashbrown.workspace = true
indexmap.workspace = true
num-traits.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow", default-features = false }
polars-error = { version = "0.31.1", path = "../polars-error" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }
simd-json = { version = "0.10", features = ["allow-non-simd", "known-key"] }
15 changes: 8 additions & 7 deletions crates/polars-lazy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ license = { workspace = true }
repository = { workspace = true }
description = "Lazy query engine for the Polars DataFrame library"

[dev-dependencies]
serde_json = "1"

[dependencies]
ahash.workspace = true
bitflags.workspace = true
glob = "0.3"
once_cell = "1"
polars-arrow = { version = "0.31.1", path = "../polars-arrow" }
polars-core = { version = "0.31.1", path = "../polars-core", features = ["lazy", "zip_with", "random"], default-features = false }
polars-io = { version = "0.31.1", path = "../polars-io", features = ["lazy", "csv"], default-features = false }
Expand All @@ -25,10 +18,18 @@ polars-pipe = { version = "0.31.1", path = "../polars-pipe", optional = true }
polars-plan = { version = "0.31.1", path = "../polars-plan" }
polars-time = { version = "0.31.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

ahash.workspace = true
bitflags.workspace = true
glob = "0.3"
once_cell = "1"
pyo3 = { version = "0.19", optional = true }
rayon.workspace = true
smartstring.workspace = true

[dev-dependencies]
serde_json = "1"

[build-dependencies]
version_check = { workspace = true }

Expand Down
9 changes: 5 additions & 4 deletions crates/polars-ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ repository = { workspace = true }
description = "More operations on Polars data structures"

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.31.1", path = "../polars-core", features = [], default-features = false }
polars-json = { version = "0.31.1", optional = true, path = "../polars-json", default-features = false }
polars-utils = { version = "0.31.1", path = "../polars-utils", default-features = false }

argminmax = { version = "0.6.1", default-features = false, features = ["float"] }
arrow.workspace = true
base64 = { version = "0.21", optional = true }
Expand All @@ -19,10 +24,6 @@ hex = { version = "0.4", optional = true }
indexmap.workspace = true
jsonpath_lib = { version = "0.3.0", optional = true, git = "https://github.com/ritchie46/jsonpath", branch = "improve_compiled" }
memchr.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.31.1", path = "../polars-core", features = [], default-features = false }
polars-json = { version = "0.31.1", optional = true, path = "../polars-json", default-features = false }
polars-utils = { version = "0.31.1", path = "../polars-utils", default-features = false }
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
smartstring.workspace = true
Expand Down
11 changes: 6 additions & 5 deletions crates/polars-pipe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ repository = { workspace = true }
description = "Lazy query engine for the Polars DataFrame library"

[dependencies]
crossbeam-channel = { version = "0.5", optional = true }
crossbeam-queue = { version = "0.3", optional = true }
enum_dispatch = "0.3"
hashbrown.workspace = true
num-traits.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.31.1", path = "../polars-core", features = ["lazy", "zip_with", "random"], default-features = false }
polars-io = { version = "0.31.1", path = "../polars-io", default-features = false, features = ["ipc", "async"] }
polars-ops = { version = "0.31.1", path = "../polars-ops", features = ["search_sorted"] }
polars-plan = { version = "0.31.1", path = "../polars-plan", default-features = false, features = ["compile"] }
polars-row = { version = "0.31.1", path = "../polars-row" }
polars-utils = { version = "0.31.1", path = "../polars-utils", features = ["sysinfo"] }

crossbeam-channel = { version = "0.5", optional = true }
crossbeam-queue = { version = "0.3", optional = true }
enum_dispatch = "0.3"
hashbrown.workspace = true
num-traits.workspace = true
rayon.workspace = true
smartstring = { version = "1" }

Expand Down
13 changes: 7 additions & 6 deletions crates/polars-plan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ description = "Lazy query engine for the Polars DataFrame library"
doctest = false

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow" }
polars-core = { version = "0.31.1", path = "../polars-core", features = ["lazy", "zip_with", "random"], default-features = false }
polars-io = { version = "0.31.1", path = "../polars-io", features = ["lazy", "csv"], default-features = false }
polars-ops = { version = "0.31.1", path = "../polars-ops", default-features = false }
polars-time = { version = "0.31.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

ahash.workspace = true
arrow.workspace = true
chrono = { version = "0.4", optional = true }
chrono-tz = { version = "0.8", optional = true }
ciborium = { version = "0.2", optional = true }
futures = { version = "0.3.25", optional = true }
once_cell.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow" }
polars-core = { version = "0.31.1", path = "../polars-core", features = ["lazy", "zip_with", "random"], default-features = false }
polars-io = { version = "0.31.1", path = "../polars-io", features = ["lazy", "csv"], default-features = false }
polars-ops = { version = "0.31.1", path = "../polars-ops", default-features = false }
polars-time = { version = "0.31.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.31.1", path = "../polars-utils" }
pyo3 = { version = "0.19", optional = true }
rayon.workspace = true
regex = { version = "1.6", optional = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/polars-row/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = { workspace = true }
description = "Row encodings for the Polars DataFrame library"

[dependencies]
arrow.workspace = true
polars-error = { version = "0.31.1", path = "../polars-error" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

arrow.workspace = true
15 changes: 8 additions & 7 deletions crates/polars-sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ license = { workspace = true }
repository = { workspace = true }
description = "SQL transpiler for Polars. Converts SQL to Polars logical plans"

[features]
csv = ["polars-lazy/csv"]
json = ["polars-lazy/json"]
default = []
ipc = ["polars-lazy/ipc"]
parquet = ["polars-lazy/parquet"]

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow", features = ["like"] }
polars-core = { version = "0.31.1", path = "../polars-core", features = [] }
polars-lazy = { version = "0.31.1", path = "../polars-lazy", features = ["compile", "strings", "cross_join", "trigonometry", "abs", "round_series", "log", "regex", "is_in", "meta", "cum_agg"] }
polars-plan = { version = "0.31.1", path = "../polars-plan", features = ["compile"] }

serde = "1"
serde_json = { version = "1" }
# sqlparser = { git = "https://github.com/sqlparser-rs/sqlparser-rs.git", rev = "ae3b5844c839072c235965fe0d1bddc473dced87" }
sqlparser = "0.34"

[features]
csv = ["polars-lazy/csv"]
json = ["polars-lazy/json"]
default = []
ipc = ["polars-lazy/ipc"]
parquet = ["polars-lazy/parquet"]
9 changes: 5 additions & 4 deletions crates/polars-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ repository = { workspace = true }
description = "Time related code for the Polars DataFrame library"

[dependencies]
polars-arrow = { version = "0.31.1", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.31.1", path = "../polars-core", default-features = false, features = ["dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-ops = { version = "0.31.1", path = "../polars-ops" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }

arrow.workspace = true
atoi = "2.0.0"
chrono = { version = "0.4", default-features = false, features = ["std"] }
chrono-tz = { version = "0.8", optional = true }
now = "0.1"
once_cell.workspace = true
polars-arrow = { version = "0.31.1", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.31.1", path = "../polars-core", default-features = false, features = ["dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-ops = { version = "0.31.1", path = "../polars-ops" }
polars-utils = { version = "0.31.1", path = "../polars-utils" }
regex = "1.7.1"
serde = { version = "1", features = ["derive"], optional = true }
smartstring.workspace = true
Expand Down
Loading

0 comments on commit a20e444

Please sign in to comment.