diff options
author | Milo Moisson <milomoisson@gmail.com> | 2023-06-20 19:29:09 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-06-21 10:32:27 +0200 |
commit | 541301698b758732b36fd719edc1f7e768445556 (patch) | |
tree | 0ddea6d7283b3736bbb8a955bd7e585c8070e6fe | |
parent | f221f595de184d5d45c1e9a2c80323dc0715b0a3 (diff) |
openpgp: Fix compilation on wasm.
-rw-r--r-- | Cargo.lock | 43 | ||||
-rw-r--r-- | openpgp/Cargo.toml | 2 |
2 files changed, 44 insertions, 1 deletions
@@ -53,6 +53,15 @@ dependencies = [ ] [[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] name = "anes" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -339,10 +348,12 @@ version = "0.4.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" dependencies = [ + "iana-time-zone", "js-sys", "num-integer", "num-traits", "wasm-bindgen", + "winapi", ] [[package]] @@ -1259,6 +1270,29 @@ dependencies = [ ] [[package]] +name = "iana-time-zone" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] name = "idea" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -3096,6 +3130,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] +name = "windows" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +dependencies = [ + "windows-targets 0.48.0", +] + +[[package]] name = "windows-sys" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml index 21c8c73f..2b6d8647 100644 --- a/openpgp/Cargo.toml +++ b/openpgp/Cargo.toml @@ -108,7 +108,7 @@ win-crypto-ng = { version = ">=0.4, <0.6", features = ["rand", "block-cipher"], winapi = { version = "0.3.8", default-features = false, features = ["bcrypt"], optional = true } [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] -chrono = { version = "0.4.10", default-features = false, features = ["std", "wasmbind"] } +chrono = { version = "0.4.10", default-features = false, features = ["std", "wasmbind", "clock"] } getrandom = { version = "0.2", features = ["js"] } rand07 = { package = "rand", version = "0.7", features = ["wasm-bindgen"] } |