From b201655bc4deacdab55299cdefad1d17d9048cf3 Mon Sep 17 00:00:00 2001 From: Howard Zuo Date: Wed, 15 Feb 2023 15:12:33 -0500 Subject: [PATCH] Fixe ahash dependency for wasm (#1407) --- Cargo.toml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6199694e526..87ac73f1a49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,13 +97,11 @@ multiversion = { version = "0.6.1", optional = true } # For support for odbc odbc-api = { version = "0.36", optional = true } -# faster hashing -[target.'cfg(target_arch = "wasm32")'.dependencies] -ahash = { version = "0.8", features=["compile-time-rng"] } -getrandom = { version = "0.2", features = ["js"] } +# Faster hashing +ahash = "0.8" -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -ahash = { version = "0.8", features=["runtime-rng"] } +[target.wasm32-unknown-unknown.dependencies] +getrandom = { version = "0.2", features = ["js"] } # parquet support [dependencies.parquet2]