@ -124,7 +124,7 @@ endif
check :
check :
cd $( abs_top_srcdir) /rust && \
cd $( abs_top_srcdir) /rust && \
$( CARGO_ENV) \
$( CARGO_ENV) RUSTDOC = $( RUSTDOC) \
$( CARGO) test --all $( RELEASE) --features " $( RUST_FEATURES) "
$( CARGO) test --all $( RELEASE) --features " $( RUST_FEATURES) "
$( MAKE) check-bindgen-bindings
$( MAKE) check-bindgen-bindings
@ -151,7 +151,7 @@ if HAVE_BINDGEN
printf "// This file is automatically generated. Do not edit.\n\n" > sys/src/sys.rs
printf "// This file is automatically generated. Do not edit.\n\n" > sys/src/sys.rs
cat sys/src/sys.rs.tmp >> sys/src/sys.rs
cat sys/src/sys.rs.tmp >> sys/src/sys.rs
rm -f sys/src/sys.rs.tmp
rm -f sys/src/sys.rs.tmp
$( CBINDGEN) --quiet --config cbindgen.toml src/jsonbuilder.rs -o gen/jsonbuilder.h
CARGO = $( CARGO) $( CBINDGEN) --quiet --config cbindgen.toml src/jsonbuilder.rs -o gen/jsonbuilder.h
$( BINDGEN) \
$( BINDGEN) \
-o sys/src/jsonbuilder.rs.tmp \
-o sys/src/jsonbuilder.rs.tmp \
--rust-target 1.68 \
--rust-target 1.68 \
@ -172,7 +172,7 @@ endif
i f H A V E _ C B I N D G E N
i f H A V E _ C B I N D G E N
gen/rust-bindings.h : $( RUST_SURICATA_LIB ) cbindgen .toml
gen/rust-bindings.h : $( RUST_SURICATA_LIB ) cbindgen .toml
cd $( abs_top_srcdir) /rust && \
cd $( abs_top_srcdir) /rust && \
$( CBINDGEN) --config $( abs_top_srcdir) /rust/cbindgen.toml \
CARGO = $( CARGO) $( CBINDGEN) --config $( abs_top_srcdir) /rust/cbindgen.toml \
--quiet --verify --output $( abs_top_builddir) /rust/gen/rust-bindings.h || true
--quiet --verify --output $( abs_top_builddir) /rust/gen/rust-bindings.h || true
e l s e
e l s e
gen/rust-bindings.h :
gen/rust-bindings.h :
@ -181,18 +181,18 @@ endif
i f H A V E _ C B I N D G E N
i f H A V E _ C B I N D G E N
gen/htp/htp_rs.h : $( RUST_SURICATA_LIB ) htp /cbindgen .toml
gen/htp/htp_rs.h : $( RUST_SURICATA_LIB ) htp /cbindgen .toml
cd $( abs_top_srcdir) /rust/htp && \
cd $( abs_top_srcdir) /rust/htp && \
cbindgen --config $( abs_top_srcdir) /rust/htp/cbindgen.toml \
CARGO = $( CARGO) $( CBINDGEN) --config $( abs_top_srcdir) /rust/htp/cbindgen.toml \
--quiet --verify --output $( abs_top_builddir) /rust/gen/htp/htp_rs.h || true
--quiet --verify --output $( abs_top_builddir) /rust/gen/htp/htp_rs.h || true
e l s e
e l s e
gen/htp/htp_rs.h :
gen/htp/htp_rs.h :
e n d i f
e n d i f
doc :
doc :
CARGO_HOME = $( CARGO_HOME) $( CARGO) doc --all-features --no-deps
CARGO_HOME = $( CARGO_HOME) RUSTDOC = $( RUSTDOC) $( CARGO) doc --all-features --no-deps
i f H A V E _ C B I N D G E N
i f H A V E _ C B I N D G E N
dist/rust-bindings.h :
dist/rust-bindings.h :
$( CBINDGEN) --config $( abs_top_srcdir) /rust/cbindgen.toml \
CARGO = $( CARGO) $( CBINDGEN) --config $( abs_top_srcdir) /rust/cbindgen.toml \
--quiet --output $( abs_top_builddir) /rust/dist/rust-bindings.h
--quiet --output $( abs_top_builddir) /rust/dist/rust-bindings.h
e l s e
e l s e
dist/rust-bindings.h :
dist/rust-bindings.h :
@ -201,7 +201,7 @@ endif
i f H A V E _ C B I N D G E N
i f H A V E _ C B I N D G E N
dist/htp/htp_rs.h :
dist/htp/htp_rs.h :
cd $( abs_top_srcdir) /rust/htp && \
cd $( abs_top_srcdir) /rust/htp && \
cbindgen --config cbindgen.toml \
CARGO = $( CARGO) $( CBINDGEN) --config cbindgen.toml \
--quiet --output $( abs_top_builddir) /rust/dist/htp/htp_rs.h
--quiet --output $( abs_top_builddir) /rust/dist/htp/htp_rs.h
e l s e
e l s e
dist/htp/htp_rs.h :
dist/htp/htp_rs.h :
@ -210,5 +210,5 @@ endif
Cargo.toml : Cargo .toml .in
Cargo.toml : Cargo .toml .in
update-lock : Cargo .toml
update-lock : Cargo .toml
cargo update
$( CARGO) update
mv Cargo.lock Cargo.lock.in
mv Cargo.lock Cargo.lock.in