From b8ff991b3a843d0a9241dc32c64a7de5da9b514b Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Wed, 15 May 2024 12:47:16 -0300 Subject: [PATCH] Allow Rust CoreAPI FFI to implement Default --- rust/binaryninjacore-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/binaryninjacore-sys/build.rs b/rust/binaryninjacore-sys/build.rs index ee004536c..243178d58 100644 --- a/rust/binaryninjacore-sys/build.rs +++ b/rust/binaryninjacore-sys/build.rs @@ -96,6 +96,7 @@ fn main() { .clang_arg("c++") .size_t_is_usize(true) .generate_comments(false) + .derive_default(true) .allowlist_function("BN.*") .allowlist_var("BN_CURRENT_CORE_ABI_VERSION") .allowlist_var("BN_MINIMUM_CORE_ABI_VERSION")