Blob Blame History Raw
From d130869572c621e13fe17fe68be7a8bd604f446c Mon Sep 17 00:00:00 2001
From: Igor Raits <i.gnatenko.brain@gmail.com>
Date: Wed, 17 Jun 2020 17:43:24 +0200
Subject: [PATCH] Enforce pkg-config feature

Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
---
 build.rs | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/build.rs b/build.rs
index aeb0e7e..ab2f8fc 100644
--- a/build.rs
+++ b/build.rs
@@ -1,4 +1,3 @@
-#[cfg(feature="pkg-config")]
 extern crate pkg_config;
 
 #[cfg(target_env = "msvc")]
@@ -94,16 +93,10 @@ fn main() {
     println!("cargo:rustc-link-lib={}", LinkingOptions::from_env());
 }
 
-#[cfg(feature = "pkg-config")]
 fn configured_by_pkg_config() -> bool {
     pkg_config::probe_library("libpq").is_ok()
 }
 
-#[cfg(not(feature = "pkg-config"))]
-fn configured_by_pkg_config() -> bool {
-    false
-}
-
 #[cfg(target_env = "msvc")]
 fn configured_by_vcpkg() -> bool {
     vcpkg::probe_package("libpq").map(|_| {
-- 
2.27.0