From 7ef3b72eba44fa842c8b396b7a975f375529b841 Mon Sep 17 00:00:00 2001 From: xmakro Date: Thu, 22 Aug 2024 16:26:22 -0700 Subject: [PATCH] Undo cargo toml --- parquet/Cargo.toml | 154 ++++++++++++++------------------------------- 1 file changed, 47 insertions(+), 107 deletions(-) diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index 91fdc0246548..8062f56dbfab 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -16,27 +16,23 @@ # under the License. [package] -authors = { workspace = true } +name = "parquet" +version = { workspace = true } +license = { workspace = true } description = "Apache Parquet implementation in Rust" -edition = { workspace = true } homepage = { workspace = true } +repository = { workspace = true } +authors = { workspace = true } keywords = ["arrow", "parquet", "hadoop"] -license = { workspace = true } -name = "parquet" readme = "README.md" -repository = { workspace = true } +edition = { workspace = true } rust-version = "1.70.0" -version = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -ahash = { version = "0.8", default-features = false, features = [ - "compile-time-rng", -] } +ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -ahash = { version = "0.8", default-features = false, features = [ - "runtime-rng", -] } +ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] } [dependencies] arrow-array = { workspace = true, optional = true } @@ -44,98 +40,49 @@ arrow-buffer = { workspace = true, optional = true } arrow-cast = { workspace = true, optional = true } arrow-csv = { workspace = true, optional = true } arrow-data = { workspace = true, optional = true } -arrow-ipc = { workspace = true, optional = true } arrow-schema = { workspace = true, optional = true } arrow-select = { workspace = true, optional = true } +arrow-ipc = { workspace = true, optional = true } # Intentionally not a path dependency as object_store is released separately object_store = { version = "0.11.0", default-features = false, optional = true } -base64 = { version = "0.22", default-features = false, features = [ - "std", -], optional = true } -brotli = { version = "6.0", default-features = false, features = [ - "std", -], optional = true } bytes = { version = "1.1", default-features = false, features = ["std"] } +thrift = { version = "0.17", default-features = false } +snap = { version = "1.0", default-features = false, optional = true } +brotli = { version = "6.0", default-features = false, features = ["std"], optional = true } +flate2 = { version = "1.0", default-features = false, features = ["rust_backend"], optional = true } +lz4_flex = { version = "0.11", default-features = false, features = ["std", "frame"], optional = true } +zstd = { version = "0.13", optional = true, default-features = false } chrono = { workspace = true } -clap = { version = "4.1", default-features = false, features = [ - "std", - "derive", - "env", - "help", - "error-context", - "usage", -], optional = true } -crc32fast = { version = "1.4", optional = true, default-features = false } -flate2 = { version = "1.0", default-features = false, features = [ - "rust_backend", -], optional = true } -futures = { version = "0.3", default-features = false, features = [ - "std", -], optional = true } -half = { version = "2.1", default-features = false, features = ["num-traits"] } -hashbrown = { version = "0.14", default-features = false } -lz4_flex = { version = "0.11", default-features = false, features = [ - "std", - "frame", -], optional = true } num = { version = "0.4", default-features = false } num-bigint = { version = "0.4", default-features = false } -paste = { version = "1.0" } +base64 = { version = "0.22", default-features = false, features = ["std", ], optional = true } +clap = { version = "4.1", default-features = false, features = ["std", "derive", "env", "help", "error-context", "usage"], optional = true } +serde = { version = "1.0", default-features = false, features = ["derive"], optional = true } +serde_json = { version = "1.0", default-features = false, features = ["std"], optional = true } seq-macro = { version = "0.3", default-features = false } -serde = { version = "1.0", default-features = false, features = [ - "derive", -], optional = true } -serde_json = { version = "1.0", default-features = false, features = [ - "std", -], optional = true } -snap = { version = "1.0", default-features = false, optional = true } -sysinfo = { version = "0.31.2", optional = true, default-features = false, features = [ - "system", -] } -thrift = { version = "0.17", default-features = false } -tokio = { version = "1.0", optional = true, default-features = false, features = [ - "macros", - "rt", - "io-util", -] } +futures = { version = "0.3", default-features = false, features = ["std"], optional = true } +tokio = { version = "1.0", optional = true, default-features = false, features = ["macros", "rt", "io-util"] } +hashbrown = { version = "0.14", default-features = false } twox-hash = { version = "1.6", default-features = false } -zstd = { version = "0.13", optional = true, default-features = false } +paste = { version = "1.0" } +half = { version = "2.1", default-features = false, features = ["num-traits"] } +sysinfo = { version = "0.31.2", optional = true, default-features = false, features = ["system"] } [dev-dependencies] -arrow = { workspace = true, features = [ - "ipc", - "test_utils", - "prettyprint", - "json", -] } base64 = { version = "0.22", default-features = false, features = ["std"] } -brotli = { version = "6.0", default-features = false, features = ["std"] } criterion = { version = "0.5", default-features = false } -flate2 = { version = "1.0", default-features = false, features = [ - "rust_backend", -] } -lz4_flex = { version = "0.11", default-features = false, features = [ - "std", - "frame", -] } -object_store = { version = "0.11.0", default-features = false, features = [ - "azure", -] } -rand = { version = "0.8", default-features = false, features = [ - "std", - "std_rng", -] } -serde_json = { version = "1.0", features = ["std"], default-features = false } snap = { version = "1.0", default-features = false } tempfile = { version = "3.0", default-features = false } -tokio = { version = "1.0", default-features = false, features = [ - "macros", - "rt", - "io-util", - "fs", -] } +brotli = { version = "6.0", default-features = false, features = ["std"] } +flate2 = { version = "1.0", default-features = false, features = ["rust_backend"] } +lz4_flex = { version = "0.11", default-features = false, features = ["std", "frame"] } zstd = { version = "0.13", default-features = false } +serde_json = { version = "1.0", features = ["std"], default-features = false } +arrow = { workspace = true, features = ["ipc", "test_utils", "prettyprint", "json"] } +tokio = { version = "1.0", default-features = false, features = ["macros", "rt", "io-util", "fs"] } +rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] } +object_store = { version = "0.11.0", default-features = false, features = ["azure"] } # TODO: temporary to fix parquet wasm build # upstream issue: https://github.com/gyscos/zstd-rs/issues/269 @@ -153,16 +100,7 @@ default = ["arrow", "snap", "brotli", "flate2", "lz4", "zstd", "base64"] # Enable lz4 lz4 = ["lz4_flex"] # Enable arrow reader/writer APIs -arrow = [ - "base64", - "arrow-array", - "arrow-buffer", - "arrow-cast", - "arrow-data", - "arrow-schema", - "arrow-select", - "arrow-ipc", -] +arrow = ["base64", "arrow-array", "arrow-buffer", "arrow-cast", "arrow-data", "arrow-schema", "arrow-select", "arrow-ipc"] # Enable CLI tools cli = ["json", "base64", "clap", "arrow-csv", "serde"] # Enable JSON APIs @@ -184,23 +122,23 @@ crc = ["crc32fast"] [[example]] name = "read_parquet" -path = "./examples/read_parquet.rs" required-features = ["arrow"] +path = "./examples/read_parquet.rs" [[example]] name = "write_parquet" -path = "./examples/write_parquet.rs" required-features = ["cli", "sysinfo"] +path = "./examples/write_parquet.rs" [[example]] name = "async_read_parquet" -path = "./examples/async_read_parquet.rs" required-features = ["arrow", "async"] +path = "./examples/async_read_parquet.rs" [[example]] name = "read_with_rowgroup" -path = "./examples/read_with_rowgroup.rs" required-features = ["arrow", "async"] +path = "./examples/read_with_rowgroup.rs" [[test]] name = "arrow_writer_layout" @@ -208,8 +146,8 @@ required-features = ["arrow"] [[test]] name = "arrow_reader" -path = "./tests/arrow_reader/mod.rs" required-features = ["arrow"] +path = "./tests/arrow_reader/mod.rs" [[bin]] name = "parquet-read" @@ -248,33 +186,35 @@ name = "parquet-index" required-features = ["cli"] [[bench]] -harness = false name = "arrow_writer" required-features = ["arrow"] +harness = false [[bench]] -harness = false name = "arrow_reader" required-features = ["arrow", "test_common", "experimental"] +harness = false [[bench]] -harness = false name = "arrow_statistics" required-features = ["arrow"] +harness = false + [[bench]] -harness = false name = "compression" required-features = ["experimental", "default"] +harness = false [[bench]] -harness = false name = "encoding" required-features = ["experimental", "default"] +harness = false [[bench]] -harness = false name = "metadata" +harness = false [lib] bench = false +