Make bundling of ssl conditionned by target environment instead of feature flag.

This commit is contained in:
KtorZ
2024-10-02 10:50:54 +02:00
parent b0cad2bf1d
commit 19fe1d37e7
4 changed files with 3 additions and 9 deletions

View File

@@ -47,11 +47,9 @@ serde_json = "1.0.94"
thiserror = "1.0.39"
uplc = { path = '../uplc', version = "1.1.4" }
[target.'cfg(target_env = "musl")'.dependencies]
openssl = { version = "0.10.66", features = ["vendored"], optional = true }
openssl-probe = { version = "0.1.5", optional = true }
[features]
bundle_openssl = ["dep:openssl", "dep:openssl-probe"]
[target.'cfg(not(windows))'.dependencies]
xdg = "2.5.2"

View File

@@ -14,7 +14,7 @@ mod cmd;
fn main() -> miette::Result<()> {
panic_handler();
#[cfg(feature = "bundle_openssl")]
#[cfg(target_env = "musl")]
openssl_probe::init_ssl_cert_env_vars();
match Cmd::default() {