From 9588c24b24fbf9f1724eee598d46823fdbf222ad Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Nov 2026 11:10:57 -0500 Subject: [PATCH] build: support system libgit2 1.9 and OpenSSL 4 Update git2 to 0.20.4, libgit2-sys to 0.18.8+1.9.7, and openssl-sys to 0.9.118 while retaining vendored-build defaults. Fixes #258 Signed-off-by: Rui Chen --- CHANGELOG.md | 6 ++++++ Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c66fb..995eafc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Build + +- Update git2 and openssl-sys to support system libgit2 1.9 and OpenSSL 4. + ## [0.26.0] - 2026-11-15 [0.26.0]: https://github.com/prooflinedev/yek/compare/v0.25.5...v0.26.0 ### Features diff --git a/Cargo.lock b/Cargo.lock index bf57e6d..0f3298f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -870,9 +870,9 @@ dependencies = [ [[package]] name = "git2" -version = "0.18.3" +version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "232e6a7bfe35766bf715e55a88b39a700596c0ccfd88cd3680b4cdb40d66ef70" +checksum = "7b88256088d75a56f8ecfa070513a775dd9107f6530ef14919dac831af9cfe2b" dependencies = [ "bitflags 2.9.4", "libc", @@ -1284,9 +1284,9 @@ checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" [[package]] name = "libgit2-sys" -version = "0.16.2+1.7.2" +version = "0.18.8+1.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee4126d8b4ee5c9d9ea891dd875cfdc1e9d0950437179104b183d7d8a74d24e8" +checksum = "7f7c568b25d7489bc3fb2988ed69ab111d2944d2f5fec3d5c987fe545ea97b50" dependencies = [ "cc", "libc", @@ -1525,9 +1525,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.109" +version = "0.9.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" +checksum = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index 2790636..de4f5d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ config = "0.15.11" content_inspector = "0.2.4" crossbeam = "0.8" crossbeam-channel = "0.5" -git2 = { version = "0.18.2", features = ["vendored-openssl", "https"] } +git2 = { version = "0.20.4", features = ["vendored-openssl", "https"] } glob = "0.3.2" ignore = "0.4" indicatif = "0.17"