From fc96a9f69e644b880368b43af7af30638ff7af54 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 14 Oct 2026 17:02:24 -0600 Subject: [PATCH] rust: hoist nom 8 dependency into workspace --- rust/Cargo.toml.in | 3 ++- rust/htp/Cargo.toml.in | 2 +- rust/htp/src/lib.rs | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 0a3c5a578f..10014e215c 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -38,6 +38,7 @@ flate2 = { version = "~1.0.35", features = ["zlib-default"], default-features = lazy_static = "~1.5.0" libc = "~0.2.172" lzma-rs = { version = "~0.2.0", features = ["stream"] } +nom8 = { package = "nom", version = "8.0.0" } once_cell = "1.21.3" regex = "~1.5.6" serde = { version = "1.0.219", default-features = false, features = ["std", "derive"] } @@ -62,7 +63,7 @@ ja4 = [] [dependencies] nom7 = { version="7.1", package="nom" } -nom8 = { version="8.0", package="nom" } +nom8.workspace = true bitflags = "~1.3.2" byteorder = "~1.4.3" uuid = { version = "~0.8.2", features = ["serde"] } diff --git a/rust/htp/Cargo.toml.in b/rust/htp/Cargo.toml.in index c53e215838..e8421a6b97 100644 --- a/rust/htp/Cargo.toml.in +++ b/rust/htp/Cargo.toml.in @@ -25,7 +25,7 @@ crate-type = ["staticlib", "rlib", "cdylib"] base64.workspace = true bstr = "1.12.0" libc.workspace = true -nom = "8.0.0" +nom8.workspace = true lzma-rs.workspace = true flate2.workspace = true brotli.workspace = true diff --git a/rust/htp/src/lib.rs b/rust/htp/src/lib.rs index 2060cbb8ff..8694ca7a34 100644 --- a/rust/htp/src/lib.rs +++ b/rust/htp/src/lib.rs @@ -10,6 +10,8 @@ // example static_mut_refs. #![allow(unknown_lints)] +extern crate nom8 as nom; + #[repr(C)] #[derive(PartialEq, Eq, Debug)] /// Status codes used by LibHTP internally.