From c9ba3363e327c0a9d45167d91601fdfc359c6396 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 6 Mar 2024 14:45:05 -0500 Subject: [PATCH] Make `CargoCallbacks` more discoverable --- bindgen/options/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindgen/options/mod.rs b/bindgen/options/mod.rs index 6b5b4d8cbc..3b3224caf0 100644 --- a/bindgen/options/mod.rs +++ b/bindgen/options/mod.rs @@ -1263,6 +1263,9 @@ options! { parse_callbacks: Vec> { methods: { /// Add a new [`ParseCallbacks`] instance to configure types in different situations. + /// + /// This can also be used with [`CargoCallbacks`](struct@crate::CargoCallbacks) to emit + /// `cargo:rerun-if-changed=...` for all `#include`d header files. pub fn parse_callbacks(mut self, cb: Box) -> Self { self.options.parse_callbacks.push(Rc::from(cb)); self