From 4dd8a91e09835932ba4d4329d441975f5feb4f69 Mon Sep 17 00:00:00 2001
From: Pat Hickey
Date: Mon, 24 Mar 2025 14:00:11 -0700
Subject: [PATCH] git2 dep: set default-features = false to get rid of openssl
dependency
---
Cargo.lock | 36 ------------------------------------
Cargo.toml | 2 +-
2 files changed, 1 insertion(+), 37 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 04dec5b..7c9e6e0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1458,8 +1458,6 @@ dependencies = [
"libc",
"libgit2-sys",
"log",
- "openssl-probe",
- "openssl-sys",
"url",
]
@@ -2080,9 +2078,7 @@ checksum = "e1dcb20f84ffcdd825c7a311ae347cce604a6f084a767dec4a4929829645290e"
dependencies = [
"cc",
"libc",
- "libssh2-sys",
"libz-sys",
- "openssl-sys",
"pkg-config",
]
@@ -2096,20 +2092,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "libssh2-sys"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "220e4f05ad4a218192533b300327f5150e809b54c4ec83b5a1d91833601811b9"
-dependencies = [
- "cc",
- "libc",
- "libz-sys",
- "openssl-sys",
- "pkg-config",
- "vcpkg",
-]
-
[[package]]
name = "libz-sys"
version = "1.1.22"
@@ -2506,24 +2488,6 @@ version = "1.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
-[[package]]
-name = "openssl-probe"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
-
-[[package]]
-name = "openssl-sys"
-version = "0.9.106"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bb61ea9811cc39e3c2069f40b8b8e2e70d8569b361f879786cc7ed48b777cdd"
-dependencies = [
- "cc",
- "libc",
- "pkg-config",
- "vcpkg",
-]
-
[[package]]
name = "option-ext"
version = "0.2.0"
diff --git a/Cargo.toml b/Cargo.toml
index 1536c0a..3061805 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -75,7 +75,7 @@ bytes = "1.6.0"
cargo_metadata = "0.19.1"
cargo-component-core = { path = "crates/core", version = "0.21.1" }
cargo-config2 = "0.1.24"
-git2 = "0.20.1"
+git2 = { version = "0.20.1", default-features = false }
clap = { version = "4.5.4", features = ["derive", "env"] }
dirs = "5"
futures = "0.3.30"