diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7787818..38b2618 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,6 +54,7 @@ jobs: - charset - cookies - socks-proxy + - native-certs env: RUST_BACKTRACE: "1" RUSTFLAGS: "-D dead_code -D unused-variables -D unused" diff --git a/src/stream.rs b/src/stream.rs index 65a7c06..0e5f29f 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -335,7 +335,7 @@ pub(crate) fn connect_https(unit: &Unit, hostname: &str) -> Result> = Lazy::new(|| { let mut root_store = rustls::RootCertStore::empty(); - #[cfg(not(feature = "native-tls"))] + #[cfg(not(feature = "native-certs"))] root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, @@ -343,10 +343,11 @@ pub(crate) fn connect_https(unit: &Unit, hostname: &str) -> Result