Skip to content

Commit c9ba336

Browse files
tgross35emilio
authored andcommitted
Make CargoCallbacks more discoverable
1 parent 67115d9 commit c9ba336

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindgen/options/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,9 @@ options! {
12631263
parse_callbacks: Vec<Rc<dyn ParseCallbacks>> {
12641264
methods: {
12651265
/// Add a new [`ParseCallbacks`] instance to configure types in different situations.
1266+
///
1267+
/// This can also be used with [`CargoCallbacks`](struct@crate::CargoCallbacks) to emit
1268+
/// `cargo:rerun-if-changed=...` for all `#include`d header files.
12661269
pub fn parse_callbacks(mut self, cb: Box<dyn ParseCallbacks>) -> Self {
12671270
self.options.parse_callbacks.push(Rc::from(cb));
12681271
self

0 commit comments

Comments
 (0)