diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/core/thin_edge_json/Cargo.toml | 4 | ||||
-rw-r--r-- | crates/core/thin_edge_json/src/alarm.rs | 2 | ||||
-rw-r--r-- | crates/core/thin_edge_json/src/event.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/core/thin_edge_json/Cargo.toml b/crates/core/thin_edge_json/Cargo.toml index df8f8acc..77602b38 100644 --- a/crates/core/thin_edge_json/Cargo.toml +++ b/crates/core/thin_edge_json/Cargo.toml @@ -8,12 +8,12 @@ rust-version = "1.58.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clock = { path = "../../common/clock", features = ["with-serde"] } +clock = { path = "../../common/clock" } json-writer = { path = "../../common/json_writer" } serde = { version = "1.0", features = ["derive"] } serde_json = "1" thiserror = "1.0" -time = { version = "0.3", features = ["formatting", "local-offset", "parsing", "serde"] } +time = { version = "0.3", features = ["formatting", "local-offset", "parsing", "serde", "serde-well-known"] } [dev-dependencies] anyhow = "1.0" diff --git a/crates/core/thin_edge_json/src/alarm.rs b/crates/core/thin_edge_json/src/alarm.rs index 91167108..9029d673 100644 --- a/crates/core/thin_edge_json/src/alarm.rs +++ b/crates/core/thin_edge_json/src/alarm.rs @@ -25,7 +25,7 @@ pub struct ThinEdgeAlarmData { pub text: Option<String>, #[serde(default)] - #[serde(with = "clock::serde::rfc3339::option")] + #[serde(with = "time::serde::rfc3339::option")] pub time: Option<Timestamp>, } diff --git a/crates/core/thin_edge_json/src/event.rs b/crates/core/thin_edge_json/src/event.rs index 8e07625f..20052f0e 100644 --- a/crates/core/thin_edge_json/src/event.rs +++ b/crates/core/thin_edge_json/src/event.rs @@ -22,7 +22,7 @@ pub struct ThinEdgeEventData { pub text: Option<String>, #[serde(default)] - #[serde(with = "clock::serde::rfc3339::option")] + #[serde(with = "time::serde::rfc3339::option")] pub time: Option<Timestamp>, #[serde(flatten)] |