From ecc713e301e43b07b69211a5b3e714b3577e3612 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 24 Sep 2022 07:32:12 +0800 Subject: [PATCH] Use patched version of the native-tls --- Cargo.lock | 14 +------------- Cargo.toml | 3 +++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3068b77..6297015 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1102,8 +1102,7 @@ dependencies = [ [[package]] name = "native-tls" version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9" +source = "git+https://github.com/lifegpc/rust-native-tls#8c4fe2aa4186971fc09b60833ca1d0dcaf701604" dependencies = [ "lazy_static", "libc", @@ -1111,7 +1110,6 @@ dependencies = [ "openssl", "openssl-probe", "openssl-sys", - "schannel", "security-framework", "security-framework-sys", "tempfile", @@ -1654,16 +1652,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" -[[package]] -name = "schannel" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" -dependencies = [ - "lazy_static", - "windows-sys", -] - [[package]] name = "sct" version = "0.7.0" diff --git a/Cargo.toml b/Cargo.toml index 09d1aac..55290c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,9 @@ exif = ["bindgen", "c_fixed_string", "cmake", "link-cplusplus", "utf16string"] server = ["async-trait", "base64", "db", "hyper", "multipart", "openssl"] ugoira = ["avdict", "bindgen", "cmake", "link-cplusplus"] +[patch.crates-io] +native-tls = { git = "https://github.com/lifegpc/rust-native-tls" } + [profile.release-with-debug] inherits = "release" debug = true