Make bundling of ssl conditionned by target environment instead of feature flag.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user