Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ jobs:
# does not work in other subdirectories for now
- run: cargo fmt --check
working-directory: rust/htp
# The ffi crate is cargo fmt clean.
- run: cargo fmt --check
working-directory: rust/ffi
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ AM_CONDITIONAL([BUILD_SHARED_LIBRARY], [test "x$enable_shared" = "xyes"] && [tes

AC_CONFIG_FILES(Makefile src/Makefile rust/Makefile rust/Cargo.lock rust/Cargo.toml rust/derive/Cargo.toml rust/.cargo/config.toml)
AC_CONFIG_FILES(rust/sys/Makefile rust/sys/Cargo.toml)
AC_CONFIG_FILES(rust/ffi/Makefile rust/ffi/Cargo.toml)
AC_CONFIG_FILES(rust/suricatactl/Makefile rust/suricatactl/Cargo.toml)
AC_CONFIG_FILES(rust/suricatasc/Makefile rust/suricatasc/Cargo.toml)
AC_CONFIG_FILES(rust/htp/Makefile rust/htp/Cargo.toml)
Expand Down
4 changes: 2 additions & 2 deletions doc/userguide/devguide/extending/output/eve-filetypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ EVE Filetype Life Cycle
***********************

The life-cycle of an EVE filetype along with the callbacks are
discussed in ``output-eve.h``:
discussed in ``output-eve-bindgen.h``:

.. literalinclude:: ../../../../../src/output-eve.h
.. literalinclude:: ../../../../../src/output-eve-bindgen.h
:language: c
:start-at: /** \brief Structure used to define an EVE output
:end-at: } SCEveFileType;
Expand Down
4 changes: 4 additions & 0 deletions rust/Cargo.lock.in

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"suricatactl",
"suricatasc",
"sys",
"ffi",
"htp",
]

Expand Down
4 changes: 3 additions & 1 deletion rust/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SUBDIRS = htp \
SUBDIRS = ffi \
htp \
sys \
suricatasc \
suricatactl
Expand All @@ -11,6 +12,7 @@ EXTRA_DIST = .cargo/config.toml.in \
derive/Cargo.toml \
dist/htp/htp_rs.h \
dist/rust-bindings.h \
ffi \
htp \
src \
suricatactl \
Expand Down
6 changes: 6 additions & 0 deletions rust/ffi/Cargo.toml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "suricata-ffi"
version = "@PACKAGE_VERSION@"
edition = "2021"
license = "GPL-2.0-only"
description = "Nice wrappers around Suricata C interface"
3 changes: 3 additions & 0 deletions rust/ffi/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
EXTRA_DIST = Cargo.toml

all-local: Cargo.toml
16 changes: 16 additions & 0 deletions rust/ffi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Copyright (C) 2026 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
Loading
Loading