diff --git a/pgxn/neon/Makefile b/pgxn/neon/Makefile index df9a6f0e4b..3d75d3d14e 100644 --- a/pgxn/neon/Makefile +++ b/pgxn/neon/Makefile @@ -58,7 +58,8 @@ WALPROP_OBJS = \ # libcommunicator.a is built by cargo from the Rust sources under communicator/ # subdirectory. `cargo build` also generates communicator_bindings.h. -neon.o: communicator/communicator_bindings.h +communicator_process.o: communicator/communicator_bindings.h +file_cache.o: communicator/communicator_bindings.h $(NEON_CARGO_ARTIFACT_TARGET_DIR)/libcommunicator.a communicator/communicator_bindings.h &: (cd $(srcdir)/communicator && cargo build $(CARGO_BUILD_FLAGS) $(CARGO_PROFILE)) diff --git a/pgxn/neon/neon.c b/pgxn/neon/neon.c index d8ea20331d..bb13d1637b 100644 --- a/pgxn/neon/neon.c +++ b/pgxn/neon/neon.c @@ -44,9 +44,6 @@ #include "storage/ipc.h" #endif -/* the rust bindings, generated by cbindgen */ -#include "communicator/communicator_bindings.h" - PG_MODULE_MAGIC; void _PG_init(void);