Skip to content

Commit

Permalink
Fixe ahash dependency for wasm (jorgecarleitao#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzuo authored and ritchie46 committed Mar 29, 2023
1 parent 69018ae commit 2c44e2b
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit 2c44e2b

Please sign in to comment.