Skip to content

Commit

Permalink
Bump to prost 0.13.2, Update generated code (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Sep 18, 2024
1 parent 9c5714c commit f3e51fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/restatedev/sdk-shared-core"

[dependencies]
thiserror = "1.0.61"
prost = "0.13"
prost = "0.13.2"
bytes = "1.6"
bytes-utils = "0.1.4"
ambassador = "0.4.0"
Expand All @@ -27,4 +27,4 @@ http = { version = "1.1.0", optional = true }
googletest = "0.11.0"
test-log = { version = "0.2.16", default-features = false, features = ["trace", "color"] }
assert2 = "0.3.14"
prost-build = "0.13"
prost-build = "0.13.2"
40 changes: 0 additions & 40 deletions src/service_protocol/generated/dev.restate.service.protocol.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// This file is @generated by prost-build.
/// Type: 0x0000 + 0
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartMessage {
/// Unique id of the invocation. This id is unique across invocations and won't change when replaying the journal.
Expand Down Expand Up @@ -35,7 +34,6 @@ pub struct StartMessage {
}
/// Nested message and enum types in `StartMessage`.
pub mod start_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StateEntry {
#[prost(bytes = "bytes", tag = "1")]
Expand All @@ -47,7 +45,6 @@ pub mod start_message {
}
}
/// Type: 0x0000 + 1
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompletionMessage {
#[prost(uint32, tag = "1")]
Expand All @@ -57,7 +54,6 @@ pub struct CompletionMessage {
}
/// Nested message and enum types in `CompletionMessage`.
pub mod completion_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "13")]
Expand All @@ -70,7 +66,6 @@ pub mod completion_message {
}
/// Type: 0x0000 + 2
/// Implementations MUST send this message when suspending an invocation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuspensionMessage {
/// This list represents any of the entry_index the invocation is waiting on to progress.
Expand All @@ -84,7 +79,6 @@ pub struct SuspensionMessage {
pub entry_indexes: ::prost::alloc::vec::Vec<u32>,
}
/// Type: 0x0000 + 3
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ErrorMessage {
/// The code can be any HTTP status code, as described <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.>
Expand Down Expand Up @@ -115,21 +109,18 @@ pub struct ErrorMessage {
pub next_retry_delay: ::core::option::Option<u64>,
}
/// Type: 0x0000 + 4
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EntryAckMessage {
#[prost(uint32, tag = "1")]
pub entry_index: u32,
}
/// Type: 0x0000 + 5
/// Implementations MUST send this message when the invocation lifecycle ends.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EndMessage {}
/// Completable: No
/// Fallible: No
/// Type: 0x0400 + 0
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InputEntryMessage {
#[prost(message, repeated, tag = "1")]
Expand All @@ -143,7 +134,6 @@ pub struct InputEntryMessage {
/// Completable: No
/// Fallible: No
/// Type: 0x0400 + 1
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OutputEntryMessage {
/// Entry name
Expand All @@ -154,7 +144,6 @@ pub struct OutputEntryMessage {
}
/// Nested message and enum types in `OutputEntryMessage`.
pub mod output_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -166,7 +155,6 @@ pub mod output_entry_message {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0800 + 0
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStateEntryMessage {
#[prost(bytes = "bytes", tag = "1")]
Expand All @@ -179,7 +167,6 @@ pub struct GetStateEntryMessage {
}
/// Nested message and enum types in `GetStateEntryMessage`.
pub mod get_state_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "13")]
Expand All @@ -193,7 +180,6 @@ pub mod get_state_entry_message {
/// Completable: No
/// Fallible: No
/// Type: 0x0800 + 1
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetStateEntryMessage {
#[prost(bytes = "bytes", tag = "1")]
Expand All @@ -207,7 +193,6 @@ pub struct SetStateEntryMessage {
/// Completable: No
/// Fallible: No
/// Type: 0x0800 + 2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClearStateEntryMessage {
#[prost(bytes = "bytes", tag = "1")]
Expand All @@ -219,7 +204,6 @@ pub struct ClearStateEntryMessage {
/// Completable: No
/// Fallible: No
/// Type: 0x0800 + 3
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClearAllStateEntryMessage {
/// Entry name
Expand All @@ -229,7 +213,6 @@ pub struct ClearAllStateEntryMessage {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0800 + 4
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStateKeysEntryMessage {
/// Entry name
Expand All @@ -240,13 +223,11 @@ pub struct GetStateKeysEntryMessage {
}
/// Nested message and enum types in `GetStateKeysEntryMessage`.
pub mod get_state_keys_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StateKeys {
#[prost(bytes = "bytes", repeated, tag = "1")]
pub keys: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "14")]
Expand All @@ -258,7 +239,6 @@ pub mod get_state_keys_entry_message {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0800 + 8
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPromiseEntryMessage {
#[prost(string, tag = "1")]
Expand All @@ -271,7 +251,6 @@ pub struct GetPromiseEntryMessage {
}
/// Nested message and enum types in `GetPromiseEntryMessage`.
pub mod get_promise_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -283,7 +262,6 @@ pub mod get_promise_entry_message {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0800 + 9
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeekPromiseEntryMessage {
#[prost(string, tag = "1")]
Expand All @@ -296,7 +274,6 @@ pub struct PeekPromiseEntryMessage {
}
/// Nested message and enum types in `PeekPromiseEntryMessage`.
pub mod peek_promise_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "13")]
Expand All @@ -310,7 +287,6 @@ pub mod peek_promise_entry_message {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0800 + A
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompletePromiseEntryMessage {
#[prost(string, tag = "1")]
Expand All @@ -327,15 +303,13 @@ pub struct CompletePromiseEntryMessage {
/// Nested message and enum types in `CompletePromiseEntryMessage`.
pub mod complete_promise_entry_message {
/// The value to use to complete the promise
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Completion {
#[prost(bytes, tag = "2")]
CompletionValue(::prost::bytes::Bytes),
#[prost(message, tag = "3")]
CompletionFailure(super::Failure),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
/// Returns empty if value was set successfully
Expand All @@ -349,7 +323,6 @@ pub mod complete_promise_entry_message {
/// Completable: Yes
/// Fallible: No
/// Type: 0x0C00 + 0
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SleepEntryMessage {
/// Wake up time.
Expand All @@ -364,7 +337,6 @@ pub struct SleepEntryMessage {
}
/// Nested message and enum types in `SleepEntryMessage`.
pub mod sleep_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "13")]
Expand All @@ -376,7 +348,6 @@ pub mod sleep_entry_message {
/// Completable: Yes
/// Fallible: Yes
/// Type: 0x0C00 + 1
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CallEntryMessage {
#[prost(string, tag = "1")]
Expand All @@ -398,7 +369,6 @@ pub struct CallEntryMessage {
}
/// Nested message and enum types in `CallEntryMessage`.
pub mod call_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -410,7 +380,6 @@ pub mod call_entry_message {
/// Completable: No
/// Fallible: Yes
/// Type: 0x0C00 + 2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OneWayCallEntryMessage {
#[prost(string, tag = "1")]
Expand Down Expand Up @@ -438,7 +407,6 @@ pub struct OneWayCallEntryMessage {
/// Fallible: No
/// Type: 0x0C00 + 3
/// Awakeables are addressed by an identifier exposed to the user. See the spec for more details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AwakeableEntryMessage {
/// Entry name
Expand All @@ -449,7 +417,6 @@ pub struct AwakeableEntryMessage {
}
/// Nested message and enum types in `AwakeableEntryMessage`.
pub mod awakeable_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -461,7 +428,6 @@ pub mod awakeable_entry_message {
/// Completable: No
/// Fallible: Yes
/// Type: 0x0C00 + 4
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompleteAwakeableEntryMessage {
/// Identifier of the awakeable. See the spec for more details.
Expand All @@ -475,7 +441,6 @@ pub struct CompleteAwakeableEntryMessage {
}
/// Nested message and enum types in `CompleteAwakeableEntryMessage`.
pub mod complete_awakeable_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -488,7 +453,6 @@ pub mod complete_awakeable_entry_message {
/// Fallible: No
/// Type: 0x0C00 + 5
/// Flag: RequiresRuntimeAck
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunEntryMessage {
/// Entry name
Expand All @@ -499,7 +463,6 @@ pub struct RunEntryMessage {
}
/// Nested message and enum types in `RunEntryMessage`.
pub mod run_entry_message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(bytes, tag = "14")]
Expand All @@ -510,7 +473,6 @@ pub mod run_entry_message {
}
/// This failure object carries user visible errors,
/// e.g. invocation failure return value or failure result of an InvokeEntryMessage.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
/// The code can be any HTTP status code, as described <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.>
Expand All @@ -520,15 +482,13 @@ pub struct Failure {
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Header {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Empty {}
/// Service protocol version.
Expand Down

0 comments on commit f3e51fc

Please sign in to comment.