diff options
author | Didier Wenzek <didier.wenzek@acidalie.com> | 2022-07-26 17:55:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 17:55:24 +0200 |
commit | 45b220f537d6a6c92772822927a432621e28438f (patch) | |
tree | 6feb5d782c0b827a65211dbe49754a5c086fe974 /crates/core | |
parent | f39825fbed5772511340f1f6aca3ed927eea837b (diff) | |
parent | 22815713097a3ccded00355076a7d710572d3187 (diff) |
Merge pull request #1298 from matthiasbeyer/remove-clock-serde
Remove "serde" module in "clock" crate
Diffstat (limited to 'crates/core')
-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)] |