From 84ea5654ed5a37b3a9b3475568b8e3cb8200619f Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Wed, 27 Dec 2023 14:34:39 -0800 Subject: [PATCH] Use native-certs with ureq --- Cargo.lock | 22 ++++++++++++++++++++++ cargo-pgrx/Cargo.toml | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3900132b5..50ce48778 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2055,6 +2055,27 @@ dependencies = [ "sct", ] +[[package]] +name = "rustls-native-certs" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" +dependencies = [ + "openssl-probe", + "rustls-pemfile", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64", +] + [[package]] name = "rustls-webpki" version = "0.101.7" @@ -2902,6 +2923,7 @@ dependencies = [ "native-tls", "once_cell", "rustls", + "rustls-native-certs", "rustls-webpki", "url", "webpki-roots", diff --git a/cargo-pgrx/Cargo.toml b/cargo-pgrx/Cargo.toml index 3632bf5cc..d6270be15 100644 --- a/cargo-pgrx/Cargo.toml +++ b/cargo-pgrx/Cargo.toml @@ -64,4 +64,7 @@ tar = "0.4.40" [features] default = ["rustls"] native-tls = ["ureq/native-tls"] -rustls = ["ureq/tls"] +rustls = [ + "ureq/tls", + "ureq/native-certs" # induces rustls to use the OS-level root of trust +]