From 4002538f597c46d3a2e54fb68c8e239369b109f1 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Fri, 16 Oct 2026 14:07:39 +1100 Subject: [PATCH] fix(driver): enable chrono's clock feature `child_process.rs` and `repository.rs` call `Utc::now()`, which chrono only provides with its `clock` feature. The driver declared chrono with `serde` alone, so it compiled only when another crate in the dependency graph happened to enable `clock`. `cargo check --no-default-features` on the driver, or on a dependent such as pact_matching built with only its `plugins` feature, failed with "no associated function or constant named `now` found for struct `Utc`". Assisted-by: Claude Code:claude-opus-5-5 --- drivers/rust/driver/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rust/driver/Cargo.toml b/drivers/rust/driver/Cargo.toml index c986f97f..cd7ada6b 100644 --- a/drivers/rust/driver/Cargo.toml +++ b/drivers/rust/driver/Cargo.toml @@ -26,7 +26,7 @@ async-trait = "0.1.91" backtrace = "0.3.76" base64 = { version = "0.23.0", optional = true } bytes = "1.12.1" -chrono = { version = "0.4.45", features = ["serde"], default-features = false } +chrono = { version = "0.4.45", features = ["clock", "serde"], default-features = false } flate2 = "1.1.9" futures-util = "0.3.33" home = "0.5.12"