From 4f052f81603288f7079f9d84f8d36550fbf10b17 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 14 Oct 2026 16:41:43 -0600 Subject: [PATCH] rust: hoist libc dependency into workspace --- rust/Cargo.toml.in | 3 ++- rust/htp/Cargo.toml.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index d17310c9d7..4c08f92404 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -35,6 +35,7 @@ brotli = "~8.0.1" # clap 4.5.58 requires clap_lex 1 which requires edition2024 clap = { version = "=4.5.57", default-features = false, features = ["std", "derive", "help", "usage"] } lazy_static = "~1.5.0" +libc = "~0.2.172" lzma-rs = { version = "~0.2.0", features = ["stream"] } once_cell = "1.21.3" regex = "~1.5.6" @@ -87,7 +88,7 @@ ipsec-parser = "~0.7.0" snmp-parser = "~0.10.0" tls-parser = "~0.11.0" x509-parser = "~0.16.0" -libc = "~0.2.172" +libc.workspace = true sha2 = "~0.10.9" digest = "~0.10.7" sha1 = "~0.10.6" diff --git a/rust/htp/Cargo.toml.in b/rust/htp/Cargo.toml.in index 24793c25ce..8e1632584f 100644 --- a/rust/htp/Cargo.toml.in +++ b/rust/htp/Cargo.toml.in @@ -24,7 +24,7 @@ crate-type = ["staticlib", "rlib", "cdylib"] [dependencies] base64.workspace = true bstr = "1.12.0" -libc = "0.2" +libc.workspace = true nom = "8.0.0" lzma-rs.workspace = true flate2 = { version = "~1.0.35", features = ["zlib-default"], default-features = false }