Skip to content

Commit

Permalink
🔧 Disable pbkdf2 parallel feature for target emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Aug 22, 2024
1 parent 311608e commit b3e5100
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ crypto-common = { version = "0.1.6", default-features = false }
ctr = { version = "0.9.2", features = ["std"] }
flate2 = "1.0.31"
futures-io = { version = "0.3.30", optional = true }
futures-util = { version = "0.3.30", features = ["io"] , optional = true }
futures-util = { version = "0.3.30", features = ["io"], optional = true }
liblzma = { version = "0.3.4", features = ["static"] }
password-hash = { version = "0.5.0", default-features = false }
pbkdf2 = { version = "0.12.2", features = ["simple", "parallel"] }
pbkdf2 = { version = "0.12.2", features = ["simple"] }
rand = "0.8.5"
zstd = { version = "0.13.2", default-features = false }

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
liblzma = { version = "0.3.4", features = ["wasm"] }
zstd = { version = "0.13.2", features = ["wasm"] }

[target.'cfg(not(target_os = "emscripten"))'.dependencies]
pbkdf2 = { version = "0.12.2", features = ["simple", "parallel"] }

[dev-dependencies]
once_cell = "1.19.0"
version-sync = "0.9.5"
Expand All @@ -37,11 +45,6 @@ version-sync = "0.9.5"
tokio = { version = "1.39.3", features = ["macros", "rt-multi-thread", "fs", "io-util"] }
tokio-util = { version = "0.7.11", features = ["compat"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
liblzma = { version = "0.3.4", features = ["wasm"] }
zstd = { version = "0.13.2", features = ["wasm"] }

[features]
wasm = ["zstd/wasm", "liblzma/wasm"] # Deprecated. This feature flag has been replaced by `cfg(target_arch = "wasm32")`.
zlib-ng = ["flate2/zlib-ng"]
Expand Down

0 comments on commit b3e5100

Please sign in to comment.