diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-10-31 04:55:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 12:55:46 +0100 |
commit | ba6bd444b60606f96dd7b2edb1b14aeae22b5016 (patch) | |
tree | e34ca91e46e72bc52deb250904c6402e6372dc8a /ext/tls | |
parent | f62e22a6998bc4d0e2b2fc3df8d6a81aac264e7a (diff) |
perf: use deno_native_certs crate (#18072)
Fixes #18071
Replace `rustls_native_certs` which links to Security framework.
https://github.com/denoland/deno_native_certs uses dlopen to lazy load
when needed.
Diffstat (limited to 'ext/tls')
-rw-r--r-- | ext/tls/Cargo.toml | 2 | ||||
-rw-r--r-- | ext/tls/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/tls/Cargo.toml b/ext/tls/Cargo.toml index 6d56dfd49..8184e97a3 100644 --- a/ext/tls/Cargo.toml +++ b/ext/tls/Cargo.toml @@ -15,9 +15,9 @@ path = "lib.rs" [dependencies] deno_core.workspace = true +deno_native_certs = "0.1.1" once_cell.workspace = true rustls = { workspace = true, features = ["dangerous_configuration"] } -rustls-native-certs.workspace = true rustls-pemfile.workspace = true rustls-webpki.workspace = true serde.workspace = true diff --git a/ext/tls/lib.rs b/ext/tls/lib.rs index 78ad243c1..323946601 100644 --- a/ext/tls/lib.rs +++ b/ext/tls/lib.rs @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +pub use deno_native_certs; pub use rustls; -pub use rustls_native_certs; pub use rustls_pemfile; pub use webpki; pub use webpki_roots; |