You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust/ffi/src
Victor Julien 1dcb549109 rust: keep the ffi logger out of the test binary
Rust unit tests link without libsuricata, so a C reference anywhere in
the reachable code makes the test binary unlinkable. The ffi logger
calls SCLogMessage even under cfg(test), unlike the suricata crate's
own, which has a print fallback. Any test that reaches
AppLayerTxData::update_file_flags therefore breaks cargo test --lib
whenever the debug feature is on: it fails the GitHub jobs that build
with --enable-debug or --all-features while our own CI never sees it.

Give log_message the same fallback behind cfg(any(test, feature =
"testing")), the pattern applayer.rs already uses for set_event.
1 day ago
..
applayer.rs rust/ffi: move AppLayerTxData to ffi 5 months ago
conf.rs rust/ffi: move conf_get_bool helper to ffi crate 6 months ago
debug.rs rust: keep the ffi logger out of the test binary 1 day ago
detect.rs detect/doc: remove unexisting links 6 months ago
direction.rs rust/ffi: move direction to ffi 5 months ago
eve.rs rust/ffi: use Flow wrapper in flow and eve callbacks 2 months ago
flow.rs rust/ffi: add flow accessors to flow wrapper 2 months ago
jsonbuilder.rs rust/ffi: add number setters to jsonbuilder wrapper 2 months ago
lib.rs stream: disrupt never seen direction with async-oneside 4 months ago
plugin.rs rust/ffi: more rust friendly plugin registration 9 months ago
thread.rs rust/ffi: add safe thread storage wrapper 5 months ago