diff --git a/rust/binaryninjacore-sys/build.rs b/rust/binaryninjacore-sys/build.rs index 243178d58..9764662e7 100644 --- a/rust/binaryninjacore-sys/build.rs +++ b/rust/binaryninjacore-sys/build.rs @@ -97,6 +97,8 @@ fn main() { .size_t_is_usize(true) .generate_comments(false) .derive_default(true) + .generate_comments(true) + .clang_arg("-fparse-all-comments") .allowlist_function("BN.*") .allowlist_var("BN_CURRENT_CORE_ABI_VERSION") .allowlist_var("BN_MINIMUM_CORE_ABI_VERSION")