From 5efbb49b8cc925c16006652c81bee1b54d46b0b8 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Thu, 15 Feb 2024 09:54:23 +0000 Subject: [PATCH] fix created_at parsing --- Cargo.toml | 2 +- src/providers/gitlab.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 59dc88a..7f411ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ smol_str = { version = "0.2.1", features = ["serde"] } thrussh = "0.34" thrussh-keys = "0.22" thrussh-libsodium = "=0.2.1" # 0.2.2 causes dynamic linking by enabling use-pkg-config -time = { version = "0.3", features = ["serde"] } +time = { version = "0.3", features = ["serde", "parsing"] } tokio = { version = "1.17", features = ["full"] } tokio-util = { version = "0.7", features = ["codec"] } toml = "0.5" diff --git a/src/providers/gitlab.rs b/src/providers/gitlab.rs index de81844..2c9e863 100644 --- a/src/providers/gitlab.rs +++ b/src/providers/gitlab.rs @@ -393,6 +393,7 @@ pub struct GitlabImpersonationTokenResponse { #[derive(Deserialize)] pub struct GitlabPackageFilesResponse { pub file_name: SmolStr, + #[serde(with = "time::serde::rfc3339")] pub created_at: time::OffsetDateTime, pub file_sha256: Arc, }