Rust: Specify the symbols to generate bindings for
@@ -17,6 +17,9 @@ fn main() {
// The input header we would like to generate
// bindings for.
.header("wrapper.h")
+ // Include only the necessary functions and enums
+ .whitelist_function("(key|ks|kdb).*")
+ .whitelist_var("(KEY|KDB).*")
// bindgen uses clang for anything C-related.
// Here we set the necessary include directories
// such that any includes in the wrapper can be found.
