From e3b1e77f7d4b91ab681a2275580a2df784ab0987 Mon Sep 17 00:00:00 2001 From: qwjyh <62229267+qwjyh@users.noreply.github.com> Date: Fri, 28 Feb 2025 01:13:38 +0900 Subject: [PATCH] feat: add option to statically link openssl (#22) * feat: add feature to statically link openssl and libgit2 * update CHANGELOG * update CHANGELOG --- CHANGELOG.md | 1 + Cargo.lock | 10 ++++++++++ Cargo.toml | 3 +++ 3 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 575d09b..5d3b984 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Added - `sync` subcommand, which performs git pull (fast-forward) and push (#21) +- Feature `vendored-openssl` to statically link openssl and libgit2 (#22) ### Fixed - Git local config is now looked up. (#20) diff --git a/Cargo.lock b/Cargo.lock index 0f749cd..8ee5e5c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1037,6 +1037,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.4.2+3.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "168ce4e058f975fe43e89d9ccf78ca668601887ae736090aacc23ae353c298e2" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.104" @@ -1045,6 +1054,7 @@ checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index 4530408..45c625b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,3 +36,6 @@ console = "0.15" assert_cmd = "2.0.16" assert_fs = "1.1.2" predicates = "3.1.2" + +[features] +vendored-openssl = ["git2/vendored-openssl"]