]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: pin once_cell to work with Rust 1.67.1 12752/head 12757/head
authorJason Ish <jason.ish@oisf.net>
Tue, 11 Mar 2025 12:16:28 +0000 (06:16 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 11 Mar 2025 12:16:28 +0000 (06:16 -0600)
Clap uses once_cell which recently released v1.20 which updated its
MSRV to 1.70. Locally pin once_cell to 1.20.3 to maintain our MSRV.

rust/Cargo.lock.in
rust/suricatactl/Cargo.toml.in
rust/suricatasc/Cargo.toml.in

index 51322f8e3d1cedb12771a147a453ef279c36a8ad..faa4f5bdc2303d4986be5afc89ac77384b6cf046 100644 (file)
@@ -1361,6 +1361,7 @@ name = "suricatactl"
 version = "8.0.0-dev"
 dependencies = [
  "clap",
+ "once_cell",
  "regex",
  "tracing",
  "tracing-subscriber",
@@ -1371,6 +1372,7 @@ name = "suricatasc"
 version = "8.0.0-dev"
 dependencies = [
  "clap",
+ "once_cell",
  "rustyline",
  "rustyline-derive",
  "serde",
index d60eab1d8827467b23a88395daa34ce087b9a803..bed4e151de1344b38542730d424def9580a1b175 100644 (file)
@@ -14,3 +14,6 @@ tracing-subscriber = "0.3"
 
 # 4.0 is the newest version that builds with Rust 1.67.1.
 clap = { version = "=4.2.0", default-features = false, features = ["std", "derive", "help", "usage"] }
+
+# Pin once_cell otherwise clap will pull in v1.21.0 which requires Rust 1.70+.
+once_cell = { version = "=1.20.3" }
index 0bc495ebea383df3a4f02c9c47a10efa2aee070e..9645a4c1075535f2489ec30ef2bed4f2c404fed0 100644 (file)
@@ -13,6 +13,9 @@ name = "suricatasc"
 # 4.0 is the newest version that builds with Rust 1.67.1.
 clap = { version = "=4.2.0", default-features = false, features = ["std", "derive", "help", "usage"] }
 
+# Pin once_cell otherwise clap will pull in v1.21.0 which requires Rust 1.70+.
+once_cell = { version = "=1.20.3" }
+
 # Need to pin back for Rust 1.67.1
 rustyline = { version = "=11.0.0" }
 rustyline-derive = { version = "0.9.0" }