Skip to content

Commit

Permalink
Prost and Nats updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mvniekerk committed Aug 9, 2024
1 parent 726d23e commit a427253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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 }

num-traits = "0.2"
num-derive = "0.4"

[dependencies.nats]
version = "0.24.1"
version = "0.25.0"
features = ["unstable"]
optional = true

Expand All @@ -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"]
Expand Down
11 changes: 6 additions & 5 deletions src/job/job_data_prost.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CronJob {
#[prost(string, tag = "1")]
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,
#[prost(uint64, tag = "2")]
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,
Expand Down Expand Up @@ -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<Uuid>,
Expand All @@ -76,15 +77,15 @@ pub struct NotificationData {
pub extra: ::prost::alloc::vec::Vec<u8>,
}
#[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<Uuid>,
#[prost(enumeration = "JobState", tag = "2")]
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<Uuid>,
Expand Down

0 comments on commit a427253

Please sign in to comment.