From 6fbcfd1403db4db4122a934f17621e7d6eb6ab46 Mon Sep 17 00:00:00 2001 From: aeon Date: Fri, 25 Nov 2022 00:55:05 +0800 Subject: [PATCH] Add allowlisted types, vars and functions for bindgen --- r2r_rcl/build.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/r2r_rcl/build.rs b/r2r_rcl/build.rs index 91cd0f7..810c634 100644 --- a/r2r_rcl/build.rs +++ b/r2r_rcl/build.rs @@ -16,6 +16,20 @@ fn main() { println!("cargo:rustc-link-lib=dylib=rosidl_runtime_c"); let bindings = builder + .allowlist_type("rcl_.*") + .allowlist_type("rcutils_.*") + .allowlist_type("rmw_.*") + .allowlist_type("rosidl_.*") + .allowlist_var("RCL_.*") + .allowlist_var("RCUTILS_.*") + .allowlist_var("RMW_.*") + .allowlist_var("rosidl_.*") + .allowlist_function("rcl_.*") + .allowlist_function("rcutils_.*") + .allowlist_function("rmw_.*") + .allowlist_function("rosidl_.*") + .allowlist_function(".*_typesupport_.*") + .allowlist_function(".*_sequence_bound_.*") .no_debug("_OSUnaligned.*") .derive_partialeq(true) .derive_copy(true)