Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fixed ahash dependency for wasm #1407

Merged
merged 2 commits into from
Feb 15, 2023
Merged
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
10 changes: 4 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down