From e94a5ce3606ecd6b8fddf85c087d33d4e90c11a4 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 29 Jul 2022 16:43:30 +0300 Subject: [PATCH] Rename pg_control_ffi.h to bindgen_deps.h, for clarity. The pg_control_ffi.h name implies that it only includes stuff related to pg_control.h. That's mostly true currently, but really the point of the file is to include everything that we need to generate Rust definitions from. --- libs/postgres_ffi/{pg_control_ffi.h => bindgen_deps.h} | 0 libs/postgres_ffi/build.rs | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename libs/postgres_ffi/{pg_control_ffi.h => bindgen_deps.h} (100%) diff --git a/libs/postgres_ffi/pg_control_ffi.h b/libs/postgres_ffi/bindgen_deps.h similarity index 100% rename from libs/postgres_ffi/pg_control_ffi.h rename to libs/postgres_ffi/bindgen_deps.h diff --git a/libs/postgres_ffi/build.rs b/libs/postgres_ffi/build.rs index 7db2c20e34..69b2711c22 100644 --- a/libs/postgres_ffi/build.rs +++ b/libs/postgres_ffi/build.rs @@ -44,7 +44,7 @@ impl ParseCallbacks for PostgresFfiCallbacks { fn main() { // Tell cargo to invalidate the built crate whenever the wrapper changes - println!("cargo:rerun-if-changed=pg_control_ffi.h"); + println!("cargo:rerun-if-changed=bindgen_deps.h"); // Finding the location of C headers for the Postgres server: // - if POSTGRES_INSTALL_DIR is set look into it, otherwise look into `/tmp_install` @@ -88,9 +88,9 @@ fn main() { // the resulting bindings. let bindings = bindgen::Builder::default() // - // All the needed PostgreSQL headers are included from 'pg_control_ffi.h' + // All the needed PostgreSQL headers are included from 'bindgen_deps.h' // - .header("pg_control_ffi.h") + .header("bindgen_deps.h") // // Tell cargo to invalidate the built crate whenever any of the // included header files changed.