From 79d0e450997b8a2c279b9ff381a92851702677f4 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Wed, 2 Oct 2024 11:32:17 +0200 Subject: [PATCH] Don't mark openssl dependencies as optional on musl. --- crates/aiken/Cargo.toml | 7 +++---- crates/aiken/src/main.rs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/aiken/Cargo.toml b/crates/aiken/Cargo.toml index 98180d2a1..d5d78e368 100644 --- a/crates/aiken/Cargo.toml +++ b/crates/aiken/Cargo.toml @@ -50,7 +50,6 @@ uplc = { path = '../uplc', version = "1.1.4" } [target.'cfg(not(windows))'.dependencies] xdg = "2.5.2" -[target.'cfg(target_os = "linux")'.dependencies] -openssl = { version = "0.10.66", features = ["vendored"], optional = true } -openssl-probe = { version = "0.1.5", optional = true } -xdg = "2.5.2" +[target.'cfg(target_env = "musl")'.dependencies] +openssl = { version = "0.10.66", features = ["vendored"] } +openssl-probe = "0.1.5" diff --git a/crates/aiken/src/main.rs b/crates/aiken/src/main.rs index b1bebb810..cd23a9e4f 100644 --- a/crates/aiken/src/main.rs +++ b/crates/aiken/src/main.rs @@ -14,7 +14,7 @@ mod cmd; fn main() -> miette::Result<()> { panic_handler(); - #[cfg(target_os = "linux")] + #[cfg(target_env = "musl")] openssl_probe::init_ssl_cert_env_vars(); match Cmd::default() {