diff --git a/src/bindgen/builder.rs b/src/bindgen/builder.rs index 5f984ec..4ca7e85 100644 --- a/src/bindgen/builder.rs +++ b/src/bindgen/builder.rs @@ -231,6 +231,15 @@ impl Builder { self } + #[allow(unused)] + pub fn with_parse_extra_bindings>(mut self, extra_bindings: &[S]) -> Builder { + self.config.parse.extra_bindings = extra_bindings + .iter() + .map(|x| String::from(x.as_ref())) + .collect(); + self + } + #[allow(unused)] pub fn with_documentation(mut self, documentation: bool) -> Builder { self.config.documentation = documentation;