Skip to content

Commit

Permalink
Emit explicit compiler error for incompatible crypto features
Browse files Browse the repository at this point in the history
  • Loading branch information
dermesser committed Nov 11, 2024
1 parent 06f4f6f commit 4ab9e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use hyper_util::client::legacy::{connect::Connect, Error as LegacyHyperError};
use rustls::crypto::aws_lc_rs::default_provider as default_crypto_provider;
#[cfg(all(feature = "ring", feature = "hyper-rustls"))]
use rustls::crypto::ring::default_provider as default_crypto_provider;
#[cfg(all(feature = "hyper-rustls", not(any(feature = "ring", feature = "aws-lc-rs"))))]
compile_error!("The `hyper-rustls` feature requires either the `ring` or `aws-lc-rs` feature to be enabled");
use thiserror::Error as ThisError;

use crate::Error;
Expand Down

0 comments on commit 4ab9e0b

Please sign in to comment.