From f1bda21cadd9ab2e0ffd6a8d98c28a0acb26332d Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sat, 20 Nov 2021 16:33:38 +0100 Subject: [PATCH] misc: Make openssl vendored for cross-compil --- Cargo.lock | 11 +++++++++++ server/Cargo.toml | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 006aa16..8f55c1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1800,6 +1800,7 @@ dependencies = [ "log", "mockall", "opaque-ke", + "openssl-sys", "orion", "rand 0.8.4", "sea-query", @@ -2238,6 +2239,15 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" +[[package]] +name = "openssl-src" +version = "111.16.0+1.1.1l" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ab2173f69416cf3ec12debb5823d244127d23a9b127d5a5189aa97c5fa2859f" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.66" @@ -2247,6 +2257,7 @@ dependencies = [ "autocfg 1.0.1", "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/server/Cargo.toml b/server/Cargo.toml index 5d419d8..d004f39 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -85,5 +85,9 @@ version = "*" features = ["serde"] version = "*" +[dependencies.openssl-sys] +features = ["vendored"] +version = "*" + [dev-dependencies] mockall = "0.9.1"