diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index dec0405b13..4de22d526a 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -31,6 +31,8 @@ rust-version = "1.85.0" [workspace.dependencies] 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"] } [lib] crate-type = ["staticlib", "rlib"] diff --git a/rust/suricatactl/Cargo.toml.in b/rust/suricatactl/Cargo.toml.in index f3c364acc4..221df0f4a9 100644 --- a/rust/suricatactl/Cargo.toml.in +++ b/rust/suricatactl/Cargo.toml.in @@ -14,5 +14,4 @@ regex = "~1.5.6" tracing = "0.1" tracing-subscriber = "0.3" once_cell = { version = "1.21.3" } -# clap 4.5.58 requires clap_lex 1 which requires edition2024 -clap = { version = "=4.5.57", default-features = false, features = ["std", "derive", "help", "usage"] } +clap.workspace = true diff --git a/rust/suricatasc/Cargo.toml.in b/rust/suricatasc/Cargo.toml.in index 05a8dc5c96..ab875dd965 100644 --- a/rust/suricatasc/Cargo.toml.in +++ b/rust/suricatasc/Cargo.toml.in @@ -11,7 +11,7 @@ readme = "README.md" name = "suricatasc" [dependencies] -clap = { version = "=4.5.57", default-features = false, features = ["std", "derive", "help", "usage"] } +clap.workspace = true once_cell = { version = "1.21.3" }