From e62569a8788322d04d9eb397c1c35a670df37fdb Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Tue, 12 Dec 2023 00:22:23 +0300 Subject: [PATCH] A few comments on rust walproposer build. --- libs/walproposer/build.rs | 3 +++ libs/walproposer/src/api_bindings.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libs/walproposer/build.rs b/libs/walproposer/build.rs index d32c8ab299..fd09030dbd 100644 --- a/libs/walproposer/build.rs +++ b/libs/walproposer/build.rs @@ -1,3 +1,6 @@ +//! Links with walproposer, pgcommon, pgport and runs bindgen on walproposer.h +//! to generate Rust bindings for it. + use std::{env, path::PathBuf, process::Command}; use anyhow::{anyhow, Context}; diff --git a/libs/walproposer/src/api_bindings.rs b/libs/walproposer/src/api_bindings.rs index 7f1bbc3b80..77afe1e686 100644 --- a/libs/walproposer/src/api_bindings.rs +++ b/libs/walproposer/src/api_bindings.rs @@ -1,3 +1,6 @@ +//! A C-Rust shim: defines implementation of C walproposer API, assuming wp +//! callback_data stores Box to some Rust implementation. + #![allow(dead_code)] use std::ffi::CStr;