From 8ce89e2a3a511e2f0eb199fbfde5b1531ef50459 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 4 Jan 2025 15:54:40 -0800 Subject: [PATCH] Squelch the warning about libgit2_vendored check-cfg --- libgit2-sys/build.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs index 57686ad5cf..77cd4eac64 100644 --- a/libgit2-sys/build.rs +++ b/libgit2-sys/build.rs @@ -22,6 +22,12 @@ fn try_system_libgit2() -> Result { } fn main() { + println!( + "cargo:rustc-check-cfg=cfg(\ + libgit2_vendored,\ + )" + ); + let https = env::var("CARGO_FEATURE_HTTPS").is_ok(); let ssh = env::var("CARGO_FEATURE_SSH").is_ok(); let vendored = env::var("CARGO_FEATURE_VENDORED").is_ok();