diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index f750765d13c3..688cb7379ae7 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -62,8 +62,11 @@ base64 = "~0.13.0" bendy = { version = "~0.3.3", default-features = false } asn1-rs = { version = "~0.6.1" } -# last version to work with MSRV 1.63 -time = "=0.3.20" +# Use custom branch of time as 0.3.20 is required for our MSRV of +# 1.63, but 0.3.20 also fails to build on latest Rust. +# +# With Rust 1.67+ we can move to time 0.3.35 and not worry about this. +time = { version = "=0.3.20", git = "https://github.com/jasonish/time", branch = "0.3.20-suricata", features = ["macros", "formatting"] } suricata-derive = { path = "./derive", version = "@PACKAGE_VERSION@" }