From ec0667470b9e9969f5ad51e35bb59208774c6c46 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 10 Jun 2026 11:53:01 +0530 Subject: [PATCH] rust: exclude DETECT_BYTEMATH_ENDIAN_DEFAULT from bindings to deal with the failure due to cbindgen updates and mismatches in generated bindings. detect-bytemath.c:61: error: "DETECT_BYTEMATH_ENDIAN_DEFAULT" redefined [-Werror] 61 | #define DETECT_BYTEMATH_ENDIAN_DEFAULT (uint8_t) BigEndian | In file included from rust.h:34, from detect-bytemath.c:32: ./../rust/gen/rust-bindings.h:5071: note: this is the location of the previous definition 5071 | #define DETECT_BYTEMATH_ENDIAN_DEFAULT BigEndian | --- rust/cbindgen.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/cbindgen.toml b/rust/cbindgen.toml index 350f215f2e79..7ed656e5282d 100644 --- a/rust/cbindgen.toml +++ b/rust/cbindgen.toml @@ -86,6 +86,7 @@ include = [ # default: [] exclude = [ "CLuaState", + "DETECT_BYTEMATH_ENDIAN_DEFAULT", ] # Types of items that we'll generate. If empty, then all types of item are emitted.