Skip to content

Commit

Permalink
Make CargoCallbacks more discoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 authored and emilio committed Mar 19, 2024
1 parent 67115d9 commit c9ba336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindgen/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,9 @@ options! {
parse_callbacks: Vec<Rc<dyn ParseCallbacks>> {
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<dyn ParseCallbacks>) -> Self {
self.options.parse_callbacks.push(Rc::from(cb));
self
Expand Down

0 comments on commit c9ba336

Please sign in to comment.