Skip to content

Commit

Permalink
Use native-certs with ureq (#1449)
Browse files Browse the repository at this point in the history
I first settled down to write up something using `rustls-native_certs`
but then I actually noticed ureq simply enables this with a feature.

This should fully solve #1430 for both rustls and native-tls.
  • Loading branch information
workingjubilee committed Jan 24, 2024
1 parent d2f634b commit 3d349ce
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion cargo-pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ nix = { version = "0.27", default-features = false, features = ["user"] }
[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
]

0 comments on commit 3d349ce

Please sign in to comment.