From 6b4626ca54e865b76c48c8615edb0558cdfd26b8 Mon Sep 17 00:00:00 2001 From: Jonathan Grahl Date: Sun, 15 Dec 2024 14:56:03 +0100 Subject: [PATCH] fix: statically link openssl (#41) --- Cargo.lock | 21 ++++++++++++++++----- Cargo.toml | 6 ++++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1fca54d..c22c4ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -902,7 +902,7 @@ dependencies = [ [[package]] name = "molnctl" -version = "0.1.12" +version = "0.2.0" dependencies = [ "anyhow", "camino", @@ -916,6 +916,7 @@ dependencies = [ "indexmap 2.2.5", "oauth2", "once_cell", + "openssl", "reqwest", "semver", "serde", @@ -1021,9 +1022,9 @@ checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "openssl" -version = "0.10.57" +version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ "bitflags 2.4.0", "cfg-if", @@ -1051,14 +1052,24 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.4.1+3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faa4eac4138c62414b5622d1b31c5c304f34b406b013c079c2bbc652fdd6678c" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" -version = "0.9.93" +version = "0.9.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index 626c122..15f9254 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,3 +33,9 @@ tungstenite = { git = "https://github.com/snapview/tungstenite-rs", rev = "0fa41 "native-tls", ] } url = "2.5.0" + +[dependencies.openssl] +version = "0.10" +features = [ + "vendored" +]