summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-11-18 15:30:57 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-11-18 15:41:35 +0100
commit9a3e872439d87f745e6a8b9fcc6d6a2f87d3c3be (patch)
treeaa1f657b76429b45788a365b4a289873cc874855
parent93b2a4344f02fd56f109a87e13b56862408b6e9b (diff)
openpgp: Enable feature wasm-bindgen for rand.
- This is used by the Rust Crypto crates.
-rw-r--r--Cargo.lock2
-rw-r--r--openpgp/Cargo.toml1
2 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 8e4e240e..b7c9bedd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1242,8 +1242,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
"cfg-if 1.0.0",
+ "js-sys",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
+ "wasm-bindgen",
]
[[package]]
diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml
index 5ecfbcc8..a0cea587 100644
--- a/openpgp/Cargo.toml
+++ b/openpgp/Cargo.toml
@@ -79,6 +79,7 @@ winapi = { version = "0.3.8", default-features = false, features = ["bcrypt"], o
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
chrono = { version = "0.4.10", default-features = false, features = ["std", "wasmbind"] }
getrandom = { version = "0.2", features = ["js"] }
+rand = { version = "0.7", features = ["wasm-bindgen"] }
[build-dependencies]
lalrpop = ">=0.17"