diff --git a/.github/workflows/msrv.yaml b/.github/workflows/msrv.yaml index e9398f3..8d7a1f0 100644 --- a/.github/workflows/msrv.yaml +++ b/.github/workflows/msrv.yaml @@ -12,4 +12,4 @@ jobs: - uses: dtolnay/rust-toolchain@1.51.0 - run: cargo check - run: cargo update --package once_cell --precise 1.14.0 - - run: cargo check --features "json encoding_rs flate2" + - run: cargo check --features "encoding_rs flate2" diff --git a/Cargo.toml b/Cargo.toml index 3c0408d..0792b4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "zeptohttpc" description = "minimal HTTP client using http and httparse crates" -version = "0.6.0" +version = "0.7.0" authors = ["Adam Reichold "] edition = "2018" rust-version = "1.51" @@ -28,7 +28,7 @@ once_cell = { version = "1.0", optional = true } rustls = { version = "0.21", optional = true } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } -webpki-roots = { version = "0.23", optional = true } +webpki-roots = { version = "0.25", optional = true } rustls-native-certs = { version = "0.6", optional = true } [package.metadata.docs.rs] diff --git a/src/stream.rs b/src/stream.rs index 322e6e9..2642976 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -142,7 +142,7 @@ fn perform_rustls_handshake( let mut root_store = RootCertStore::empty(); #[cfg(feature = "webpki-roots")] - root_store.add_server_trust_anchors(TLS_SERVER_ROOTS.0.iter().map(|root| { + root_store.add_trust_anchors(TLS_SERVER_ROOTS.iter().map(|root| { OwnedTrustAnchor::from_subject_spki_name_constraints( root.subject, root.spki,