Avoid rustcrypto backend for release builds

This commit is contained in:
Markus Unterwaditzer
2025-09-21 14:56:13 +02:00
committed by Cooper Quintin
parent 3dc807fc63
commit 549d3a6a8f
4 changed files with 119 additions and 12 deletions

View File

@@ -169,9 +169,12 @@ fn run_shutdown_thread(
async fn main() -> Result<(), RayhunterError> {
env_logger::init();
rustls_rustcrypto::provider()
.install_default()
.expect("Couldn't install rustcrypto provider");
#[cfg(feature = "rustcrypto-tls")]
{
rustls_rustcrypto::provider()
.install_default()
.expect("Couldn't install rustcrypto provider");
}
let args = parse_args();