From 9590b1eb49a5df47ea82c79bba99600d5b398c5b Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sat, 30 Mar 2024 03:07:15 -0700 Subject: [PATCH] use upstream pki-types --- Cargo.lock | 18 +++++++++++++++--- Cargo.toml | 3 --- client/Cargo.toml | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aa03ac4..8d84c8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -541,6 +541,7 @@ dependencies = [ "js-sys", "pin-project-lite", "ring", + "rustls-pki-types", "send_wrapper", "tokio", "tokio-rustls", @@ -1569,10 +1570,11 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.3.1" -source = "git+https://github.com/r58Playz/rustls-pki-types#944afed109e6874e1482392c7ab5333d7112ef47" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" dependencies = [ - "wasm-bindgen", + "web-time", ] [[package]] @@ -2288,6 +2290,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + [[package]] name = "webpki-roots" version = "0.26.1" diff --git a/Cargo.toml b/Cargo.toml index f84d461..e790af0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,9 +3,6 @@ resolver = "2" members = ["server", "client", "wisp", "simple-wisp-client"] default-members = ["server"] -[patch.crates-io] -rustls-pki-types = { git = "https://github.com/r58Playz/rustls-pki-types" } - [profile.release] lto = true debug = true diff --git a/client/Cargo.toml b/client/Cargo.toml index b24b74b..fed786d 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -39,6 +39,9 @@ wasmtimer = "0.2.0" [dependencies.ring] features = ["wasm32_unknown_unknown_js"] +[dependencies.rustls-pki-types] +features = ["web"] + [dev-dependencies] default-env = "0.1.1" wasm-bindgen-test = "0.3.42"