diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-11-17 14:05:18 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-11-18 14:11:33 +0100 |
commit | 93b2a4344f02fd56f109a87e13b56862408b6e9b (patch) | |
tree | 5fa9469c43e877e40a89c64f39cbb43a1ac619ce | |
parent | 697245e1264844ccc9bda486dfc821ac2f3a63d5 (diff) |
openpgp: Enable js feature for getrandom.
-rw-r--r-- | Cargo.lock | 3 | ||||
-rw-r--r-- | openpgp/Cargo.toml | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1253,8 +1253,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi 0.10.2+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] @@ -2883,6 +2885,7 @@ dependencies = [ "ed25519-dalek", "flate2", "generic-array 0.14.4", + "getrandom 0.2.3", "idea", "idna", "lalrpop", diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml index 39455eff..5ecfbcc8 100644 --- a/openpgp/Cargo.toml +++ b/openpgp/Cargo.toml @@ -78,6 +78,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"] } [build-dependencies] lalrpop = ">=0.17" |