Skip to content

Commit

Permalink
Relax zstd-sys Version Pin (#5829)
Browse files Browse the repository at this point in the history
* build: pin zstd-sys to 2.0.7

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* change to <=2.0.9

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* <2.0.10

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* also limit package zstd

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* try multi selectors

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove dep pin

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* only pin for wasm target family

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
  • Loading branch information
waynexia authored Jun 1, 2024
1 parent 5a24119 commit e4b28bd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions parquet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ 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.0", optional = true, default-features = false }
# TODO: temporary to fix parquet wasm build
# upstream issue: https://github.com/gyscos/zstd-rs/issues/269
zstd-sys = { version = "=2.0.9", optional = true, default-features = false }
zstd = { version = "0.13", optional = true, default-features = false }
chrono = { workspace = true }
num = { version = "0.4", default-features = false }
num-bigint = { version = "0.4", default-features = false }
Expand All @@ -80,15 +77,20 @@ 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 }
# TODO: temporary to fix parquet wasm build
# upstream issue: https://github.com/gyscos/zstd-rs/issues/269
zstd-sys = { version = "=2.0.9", 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.10.0", default-features = false, features = ["azure"] }

# TODO: temporary to fix parquet wasm build
# upstream issue: https://github.com/gyscos/zstd-rs/issues/269
[target.'cfg(target_family = "wasm")'.dependencies]
zstd-sys = { version = ">=2.0.0, <2.0.10", optional = true, default-features = false }

[target.'cfg(target_family = "wasm")'.dev-dependencies]
zstd-sys = { version = ">=2.0.0, <2.0.10", default-features = false }

[package.metadata.docs.rs]
all-features = true

Expand Down

0 comments on commit e4b28bd

Please sign in to comment.