Skip to content
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

chore(rust): Use workspace package info / organize dependencies section #10279

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ exclude = [

[workspace.package]
version = "0.31.1"
authors = ["Ritchie Vink <ritchie46@gmail.com>"]
edition = "2021"
homepage = "https://www.pola.rs/"
repository = "https://github.com/pola-rs/polars"
license = "MIT"

[workspace.dependencies]
rayon = "1.6"
Expand Down
2 changes: 0 additions & 2 deletions contribution/polars_ops_multiple_arguments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name = "polars_ops_multiple_arguments"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
polars = { path = "../../crates/polars" }
polars-core = { path = "../../crates/polars-core" }
12 changes: 6 additions & 6 deletions crates/polars-algo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "polars-algo"
version.workspace = true
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Algorithms built upon Polars primitives"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
polars-core = { version = "0.31.1", path = "../polars-core", features = ["dtype-categorical", "asof_join"], default-features = false }
polars-lazy = { version = "0.31.1", path = "../polars-lazy", features = ["asof_join", "concat_str", "strings"] }
Expand Down
15 changes: 8 additions & 7 deletions crates/polars-arrow/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[package]
name = "polars-arrow"
version.workspace = true
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
license = "MIT"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Arrow interfaces for Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[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
94 changes: 47 additions & 47 deletions crates/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,54 @@
[package]
name = "polars-core"
version.workspace = true
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Core of the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[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"]
Expand Down Expand Up @@ -148,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
12 changes: 6 additions & 6 deletions crates/polars-error/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "polars-error"
version.workspace = true
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Error definitions for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
arrow.workspace = true
regex = { version = "1.6", optional = true }
Expand Down
84 changes: 42 additions & 42 deletions crates/polars-io/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
[package]
name = "polars-io"
version.workspace = true
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "IO related logic for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[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
Expand Down Expand Up @@ -58,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
20 changes: 10 additions & 10 deletions crates/polars-json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[package]
name = "polars-json"
version.workspace = true
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "JSON related logic for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[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"] }
28 changes: 14 additions & 14 deletions crates/polars-lazy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
[package]
name = "polars-lazy"
version.workspace = true
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "Lazy query engine for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[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 @@ -26,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
Loading