]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: generated bindings depend on cbindgen.toml
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 23 Jan 2025 09:12:05 +0000 (10:12 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 23 Jan 2025 18:10:48 +0000 (19:10 +0100)
make should rerun cbindgen if cbindgen.toml is modified

rust/Makefile.am

index d53eb97090e11ce95a36424af2056ca455123d4b..a47a1c15342d5383122b0014db57dd746a6bed9f 100644 (file)
@@ -84,7 +84,7 @@ vendor:
        $(CARGO_ENV) $(CARGO) vendor
 
 if HAVE_CBINDGEN
-gen/rust-bindings.h: $(RUST_SURICATA_LIB)
+gen/rust-bindings.h: $(RUST_SURICATA_LIB) cbindgen.toml
        cd $(abs_top_srcdir)/rust && \
                cbindgen --config $(abs_top_srcdir)/rust/cbindgen.toml \
                --quiet --verify --output $(abs_top_builddir)/rust/gen/rust-bindings.h || true