diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index eecfd55b9098..b865f342a9c8 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -28,6 +28,12 @@ readme = "README.md" edition = "2021" rust-version = "1.62" +[target.'cfg(target_arch = "wasm32")'.dependencies] +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"] } + [dependencies] arrow-array = { version = "28.0.0", path = "../arrow-array", default-features = false, optional = true } arrow-buffer = { version = "28.0.0", path = "../arrow-buffer", default-features = false, optional = true } @@ -38,7 +44,6 @@ arrow-schema = { version = "28.0.0", path = "../arrow-schema", default-features arrow-select = { version = "28.0.0", path = "../arrow-select", default-features = false, optional = true } arrow-ipc = { version = "28.0.0", path = "../arrow-ipc", default-features = false, optional = true } -ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] } 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 }