From ebe0ba4ebb48244ceaccbf9351d6a8d8ef33c092 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 13 Mar 2026 10:43:12 +0100 Subject: [PATCH] rust: limit clap verson to 4.5.57 clap 4.5.58 and further requires edition2024 which is incompatible with MSRV --- rust/Cargo.lock.in | 12 ++++++------ rust/suricatactl/Cargo.toml.in | 3 ++- rust/suricatasc/Cargo.toml.in | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/rust/Cargo.lock.in b/rust/Cargo.lock.in index 31649b4234..f514fab2d9 100644 --- a/rust/Cargo.lock.in +++ b/rust/Cargo.lock.in @@ -271,9 +271,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.48" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2134bb3ea021b78629caa971416385309e0131b351b25e01dc16fb54e1b5fae" +checksum = "6899ea499e3fb9305a65d5ebf6e3d2248c5fab291f300ad0a704fbe142eae31a" dependencies = [ "clap_builder", "clap_derive", @@ -281,9 +281,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.48" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ba64afa3c0a6df7fa517765e31314e983f51dda798ffba27b988194fb65dc9" +checksum = "7b12c8b680195a62a8364d16b8447b01b6c2c8f9aaf68bee653be34d4245e238" dependencies = [ "anstyle", "clap_lex", @@ -291,9 +291,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.47" +version = "4.5.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbfd7eae0b0f1a6e63d4b13c9c478de77c2eb546fba158ad50b4203dc24b9f9c" +checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5" dependencies = [ "heck", "proc-macro2", diff --git a/rust/suricatactl/Cargo.toml.in b/rust/suricatactl/Cargo.toml.in index f37914d6ec..7ea5a9d118 100644 --- a/rust/suricatactl/Cargo.toml.in +++ b/rust/suricatactl/Cargo.toml.in @@ -13,4 +13,5 @@ regex = "~1.5.6" tracing = "0.1" tracing-subscriber = "0.3" once_cell = { version = "1.21.3" } -clap = { version = "4.5.39", default-features = false, features = ["std", "derive", "help", "usage"] } +# clap 4.5.58 requires clap_lex 1 which requires edition2024 +clap = { version = "=4.5.57", default-features = false, features = ["std", "derive", "help", "usage"] } diff --git a/rust/suricatasc/Cargo.toml.in b/rust/suricatasc/Cargo.toml.in index b40c1e2b40..be3222cfe3 100644 --- a/rust/suricatasc/Cargo.toml.in +++ b/rust/suricatasc/Cargo.toml.in @@ -10,7 +10,7 @@ readme = "README.md" name = "suricatasc" [dependencies] -clap = { version = "4.5.39", default-features = false, features = ["std", "derive", "help", "usage"] } +clap = { version = "=4.5.57", default-features = false, features = ["std", "derive", "help", "usage"] } once_cell = { version = "1.21.3" }