From fd32c3fd86b43f5623a57fd30115331e73953447 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 8 May 2024 22:19:33 +0300 Subject: [PATCH] build: apple tls-api-openssl dependency --- Cargo.lock | 16 ++++++++++++++++ Cargo.toml | 3 +++ 2 files changed, 19 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 806b365..9be5b10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3806,6 +3806,7 @@ dependencies = [ "thiserror", "tls-api", "tls-api-native-tls", + "tls-api-openssl", "tokio 1.37.0", "tokio-util 0.7.10", "toml 0.8.12", @@ -8899,6 +8900,21 @@ dependencies = [ "tokio 1.37.0", ] +[[package]] +name = "tls-api-openssl" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82155f245c99a3b652627f32abeacd4eae9e0fec996c1090df121e01379d28f3" +dependencies = [ + "anyhow", + "openssl", + "openssl-sys", + "thiserror", + "tls-api", + "tls-api-test", + "tokio 1.37.0", +] + [[package]] name = "tls-api-test" version = "0.9.0" diff --git a/Cargo.toml b/Cargo.toml index 2b7088d..0c8556b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,6 +82,9 @@ tokio-util = { version = "0.7.8", features = ["codec"] } [build-dependencies] built = { version = "0.7.0", features = ["git2"]} +[target.'cfg(target_vendor = "apple")'.dependencies] +tls-api-openssl = "0.9.0" + [target.'cfg(not(target_os = "android"))'.dependencies] env_logger = "0.10.0" winit = { version = "0.29.15" }