From 6384a3f87f4a45b0813044b358a112b41f5d54c8 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Thu, 20 Jun 2024 14:29:14 +0100 Subject: [PATCH] fix: Fix dependency features when building pywr-core alone. --- Cargo.toml | 2 +- pywr-core/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7f69e387..aaa4368f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,5 +47,5 @@ tracing = { version = "0.1", features = ["log"] } csv = "1.1" hdf5 = { git = "https://github.com/aldanor/hdf5-rust.git", package = "hdf5", features = ["static", "zlib"] } pywr-v1-schema = { git = "https://github.com/pywr/pywr-schema/", tag = "v0.13.0", package = "pywr-schema" } -chrono = { version = "0.4.34" } +chrono = { version = "0.4.34", features = ["serde"] } schemars = { version = "0.8.16", features = ["chrono"] } diff --git a/pywr-core/Cargo.toml b/pywr-core/Cargo.toml index 04097ff3..8d5da74d 100644 --- a/pywr-core/Cargo.toml +++ b/pywr-core/Cargo.toml @@ -30,7 +30,7 @@ nalgebra = "0.32.3" chrono = { workspace = true } polars = { workspace = true } -pyo3 = { workspace = true, features = ["chrono"] } +pyo3 = { workspace = true, features = ["chrono", "macros"] } rayon = "1.6.1"