mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
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.
This commit is contained in:
committed by
Anastasia Lubennikova
parent
d5ec84b87b
commit
e94a5ce360
@@ -44,7 +44,7 @@ impl ParseCallbacks for PostgresFfiCallbacks {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Tell cargo to invalidate the built crate whenever the wrapper changes
|
// 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:
|
// Finding the location of C headers for the Postgres server:
|
||||||
// - if POSTGRES_INSTALL_DIR is set look into it, otherwise look into `<project_root>/tmp_install`
|
// - if POSTGRES_INSTALL_DIR is set look into it, otherwise look into `<project_root>/tmp_install`
|
||||||
@@ -88,9 +88,9 @@ fn main() {
|
|||||||
// the resulting bindings.
|
// the resulting bindings.
|
||||||
let bindings = bindgen::Builder::default()
|
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
|
// Tell cargo to invalidate the built crate whenever any of the
|
||||||
// included header files changed.
|
// included header files changed.
|
||||||
|
|||||||
Reference in New Issue
Block a user