From cee102c76dc60ecea22947d9da956e03355e34c4 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 3 Jun 2026 14:56:42 +0530 Subject: [PATCH] rust: add serde and serde_json as dependencies Feature 2727 Feature 8523 --- rust/Cargo.lock.in | 5 +++++ rust/Cargo.toml.in | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rust/Cargo.lock.in b/rust/Cargo.lock.in index 3fe1f16a5d..9c80e26f9b 100644 --- a/rust/Cargo.lock.in +++ b/rust/Cargo.lock.in @@ -1565,6 +1565,8 @@ dependencies = [ "sawp", "sawp-modbus", "sawp-pop3", + "serde", + "serde_json", "sha1", "sha2", "snmp-parser", @@ -1944,6 +1946,9 @@ name = "uuid" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +dependencies = [ + "serde", +] [[package]] name = "valuable" diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 8c2ae734d8..458965e8b4 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -42,7 +42,7 @@ nom7 = { version="7.1", package="nom" } nom8 = { version="8.0", package="nom" } bitflags = "~1.3.2" byteorder = "~1.4.3" -uuid = "~0.8.2" +uuid = { version = "~0.8.2", features = ["serde"] } crc = "~1.8.1" lzma-rs = { version = "~0.2.0", features = ["stream"] } memchr = "~2.7.4" @@ -84,6 +84,8 @@ hex = "~0.4.3" psl = "2" time = "=0.3.41" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" suricata-derive = { path = "./derive", version = "@PACKAGE_VERSION@" } suricata-sys = { path = "./sys", version = "@PACKAGE_VERSION@" }