From 2347110f6aee6b2aa573455d045c3b8579a59987 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 29 Jan 2025 14:21:31 -0700 Subject: [PATCH] Have separate Windows dependency for vendored --- idevice/Cargo.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/idevice/Cargo.toml b/idevice/Cargo.toml index 69a1b66..8a3ac6f 100644 --- a/idevice/Cargo.toml +++ b/idevice/Cargo.toml @@ -13,7 +13,6 @@ keywords = ["lockdownd", "ios"] [dependencies] tokio = { version = "1.43", features = ["io-util", "macros", "time"] } tokio-openssl = { version = "0.6" } -openssl = { version = "0.10" } plist = { version = "1.7" } serde = { version = "1", features = ["derive"] } @@ -54,5 +53,9 @@ full = [ "xpc", ] -[target.'cfg(target_os = "windows")'.features] -default = ["openssl/vendored"] +# Why: https://github.com/rust-lang/cargo/issues/1197 +[target.'cfg(windows)'.dependencies] +openssl = { version = "0.10", features = ["vendored"] } + +[target.'cfg(not(windows))'.dependencies] +openssl = { version = "0.10" }