From a4272530ba1b69391dd38331ceb7679a7d53f890 Mon Sep 17 00:00:00 2001 From: Michael van Niekerk Date: Fri, 9 Aug 2024 20:43:19 +0200 Subject: [PATCH] Prost and Nats updates --- Cargo.toml | 6 +++--- src/job/job_data_prost.rs | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a56499..9a796e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ tokio = { version = "1", features = ["time", "rt", "sync"] } cron = "0.12" chrono = { version = "0.4", default-features = false } uuid = { version = "1", features = ["v4"] } -prost = { version = "0.11", optional = true } +prost = { version = "0.13", optional = true } tracing = "0.1" tracing-subscriber = { version = "0.3", optional = true } @@ -29,7 +29,7 @@ num-traits = "0.2" num-derive = "0.4" [dependencies.nats] -version = "0.24.1" +version = "0.25.0" features = ["unstable"] optional = true @@ -52,7 +52,7 @@ tokio = { version = "1", features = ["macros", "rt-multi-thread"] } chrono-tz = { version = "0.8.5" } [build-dependencies] -prost-build = { version = "0.11", optional = true } +prost-build = { version = "0.13", optional = true } [features] signal = ["tokio/signal"] diff --git a/src/job/job_data_prost.rs b/src/job/job_data_prost.rs index a16f8ad..0424173 100644 --- a/src/job/job_data_prost.rs +++ b/src/job/job_data_prost.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CronJob { @@ -5,7 +6,7 @@ pub struct CronJob { pub schedule: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NonCronJob { #[prost(bool, tag = "1")] pub repeating: bool, @@ -13,7 +14,7 @@ pub struct NonCronJob { pub repeated_every: u64, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Uuid { #[prost(uint64, tag = "1")] pub id1: u64, @@ -58,7 +59,7 @@ pub mod job_stored_data { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct JobIdAndNotification { #[prost(message, optional, tag = "1")] pub job_id: ::core::option::Option, @@ -76,7 +77,7 @@ pub struct NotificationData { pub extra: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NotificationIdAndState { #[prost(message, optional, tag = "1")] pub notification_id: ::core::option::Option, @@ -84,7 +85,7 @@ pub struct NotificationIdAndState { pub job_state: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct JobAndNextTick { #[prost(message, optional, tag = "1")] pub id: ::core::option::Option,