From 55788783c545e5af45f1a6d0334124bc13762bd4 Mon Sep 17 00:00:00 2001 From: geoffsee <> Date: Thu, 14 Aug 2025 17:14:08 -0400 Subject: [PATCH] Update `insecure-dangerous` feature tests and bump version to 0.1.4 --- Cargo.lock | 2 +- crates/hyper-custom-cert/Cargo.toml | 2 +- crates/hyper-custom-cert/tests/insecure_dangerous_features.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8e9eba..cfa352d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -364,7 +364,7 @@ dependencies = [ [[package]] name = "hyper-custom-cert" -version = "0.1.2" +version = "0.1.3" dependencies = [ "hyper-rustls", "hyper-tls", diff --git a/crates/hyper-custom-cert/Cargo.toml b/crates/hyper-custom-cert/Cargo.toml index 9472618..47a6830 100644 --- a/crates/hyper-custom-cert/Cargo.toml +++ b/crates/hyper-custom-cert/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyper-custom-cert" -version = "0.1.3" +version = "0.1.4" edition = "2021" description = "A small, ergonomic HTTP client wrapper around hyper with optional support for custom Root CAs and a dev-only insecure mode for self-signed certificates." license = "MIT OR Apache-2.0" diff --git a/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs b/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs index f26c188..13496f1 100644 --- a/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs +++ b/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs @@ -7,7 +7,9 @@ //! Never use this in production environments! use hyper_custom_cert::HttpClient; +#[cfg(feature = "insecure-dangerous")] use std::collections::HashMap; +#[cfg(feature = "insecure-dangerous")] use std::time::Duration; #[cfg(feature = "insecure-dangerous")]