From: Jason Ish Date: Fri, 24 Jan 2025 15:05:03 +0000 (-0600) Subject: rust: add auto-generated header to sys.rs X-Git-Tag: suricata-8.0.0-beta1~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b73de6f6de4051668641c03df39b4bbf81ba3a3;p=thirdparty%2Fsuricata.git rust: add auto-generated header to sys.rs We don't keep bindgen's autogenerated do not edit line as it contains the bindgen version which could break the CI check for out of date bindings. So add our own do not edit line. Ticket: #7341 --- diff --git a/rust/Makefile.am b/rust/Makefile.am index c96724f01f..b1791b001d 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -117,6 +117,7 @@ if HAVE_BINDGEN $(abs_top_srcdir)/src/bindgen.h \ -- \ -DHAVE_CONFIG_H -I../src -I../rust/gen $(CPPFLAGS) + sed -i '1i\// This file is automatically generated. Do not edit.\n' sys/src/sys.rs else @echo "error: bindgen not installed, can't update bindings" exit 1 diff --git a/rust/sys/src/sys.rs b/rust/sys/src/sys.rs index 61c35d8d2e..1c358f7b5a 100644 --- a/rust/sys/src/sys.rs +++ b/rust/sys/src/sys.rs @@ -1,3 +1,5 @@ +// This file is automatically generated. Do not edit. + #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum AppProtoEnum {