From 560a20a3cb9e9bfbaf95c496b9fe05bb37934cba Mon Sep 17 00:00:00 2001 From: Mike Nguyen Date: Tue, 21 Jan 2025 18:24:43 +0000 Subject: [PATCH 1/7] release: bump Signed-off-by: Mike Nguyen --- .github/workflows/validate-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index 76218fb0..67eef1dd 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -52,8 +52,8 @@ jobs: CHECKOUT_REF: ${{ github.ref }} outputs: DAPR_INSTALL_URL: ${{ env.DAPR_INSTALL_URL }} - DAPR_CLI_VERSION: ${{ steps.outputs.outputs.DAPR_CLI_VERSION }} - DAPR_RUNTIME_VERSION: 1.15.0-rc.2 + DAPR_CLI_VERSION: 1.15.0-rc.1 + DAPR_RUNTIME_VERSION: 1.15.0-rc.5 CHECKOUT_REPO: ${{ steps.outputs.outputs.CHECKOUT_REPO }} CHECKOUT_REF: ${{ steps.outputs.outputs.CHECKOUT_REF }} GITHUB_SHA: ${{ steps.outputs.outputs.GITHUB_SHA }} From c8d01970e1b5112e20c7888f12294d5129496d4d Mon Sep 17 00:00:00 2001 From: Mike Nguyen Date: Tue, 28 Jan 2025 20:17:57 +0000 Subject: [PATCH 2/7] bump to cli rc3 & runtime rc6 Signed-off-by: Mike Nguyen --- .github/workflows/validate-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index 67eef1dd..41d3a8ed 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -52,8 +52,8 @@ jobs: CHECKOUT_REF: ${{ github.ref }} outputs: DAPR_INSTALL_URL: ${{ env.DAPR_INSTALL_URL }} - DAPR_CLI_VERSION: 1.15.0-rc.1 - DAPR_RUNTIME_VERSION: 1.15.0-rc.5 + DAPR_CLI_VERSION: 1.15.0-rc.3 + DAPR_RUNTIME_VERSION: 1.15.0-rc.6 CHECKOUT_REPO: ${{ steps.outputs.outputs.CHECKOUT_REPO }} CHECKOUT_REF: ${{ steps.outputs.outputs.CHECKOUT_REF }} GITHUB_SHA: ${{ steps.outputs.outputs.GITHUB_SHA }} From fe6a55fd9cd4a07f6b4fa8998d45176e143906f4 Mon Sep 17 00:00:00 2001 From: Mike Nguyen Date: Tue, 28 Jan 2025 20:22:47 +0000 Subject: [PATCH 3/7] bump runtime to rc7 Signed-off-by: Mike Nguyen --- .github/workflows/validate-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index 41d3a8ed..f93f237d 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -53,7 +53,7 @@ jobs: outputs: DAPR_INSTALL_URL: ${{ env.DAPR_INSTALL_URL }} DAPR_CLI_VERSION: 1.15.0-rc.3 - DAPR_RUNTIME_VERSION: 1.15.0-rc.6 + DAPR_RUNTIME_VERSION: 1.15.0-rc.7 CHECKOUT_REPO: ${{ steps.outputs.outputs.CHECKOUT_REPO }} CHECKOUT_REF: ${{ steps.outputs.outputs.CHECKOUT_REF }} GITHUB_SHA: ${{ steps.outputs.outputs.GITHUB_SHA }} From deafbe0a6c372b9b3c0b24fd3d34edef948d1534 Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 3 Feb 2025 13:10:50 +0000 Subject: [PATCH 4/7] chore: bump validation to latest rcs Signed-off-by: mikeee --- .github/workflows/validate-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index f93f237d..9c335cde 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -52,8 +52,8 @@ jobs: CHECKOUT_REF: ${{ github.ref }} outputs: DAPR_INSTALL_URL: ${{ env.DAPR_INSTALL_URL }} - DAPR_CLI_VERSION: 1.15.0-rc.3 - DAPR_RUNTIME_VERSION: 1.15.0-rc.7 + DAPR_CLI_VERSION: 1.15.0-rc.4 + DAPR_RUNTIME_VERSION: 1.15.0-rc.9 CHECKOUT_REPO: ${{ steps.outputs.outputs.CHECKOUT_REPO }} CHECKOUT_REF: ${{ steps.outputs.outputs.CHECKOUT_REF }} GITHUB_SHA: ${{ steps.outputs.outputs.GITHUB_SHA }} From cf0deb35857236bf2845f254cfd32f14eebed63c Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 3 Feb 2025 14:30:53 +0000 Subject: [PATCH 5/7] chore(release): bump deps and rc version Signed-off-by: mikeee --- Cargo.toml | 10 +++++----- README.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9d0e1ee0..3ad088d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,8 @@ resolver = "2" [workspace.dependencies] async-trait = "0.1" -prost = "0.13.1" -prost-types = "0.13.1" +prost = "0.13.4" +prost-types = "0.13.4" serde = "1.0" serde_json = "1.0" @@ -22,11 +22,11 @@ tokio = "1.39" tokio-stream = "0.1" tokio-util = "0.7" -tonic = "0.12.1" -tonic-build = "0.12.1" +tonic = "0.12.3" +tonic-build = "0.12.3" [workspace.package] -version = "0.16.0-rc.4" +version = "0.16.0-rc.5" authors = [ "Mike Nguyen ", "The Dapr Authors " diff --git a/README.md b/README.md index 22101a48..27d6d716 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Add the following to your `Cargo.toml` file: ```toml [dependencies] -dapr = "0.16.0-rc.4" +dapr = "0.16.0-rc.5" ``` Here's a basic example to create a client: From 3d0ff033f8d7c8ea371df4198b7746828743df2c Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 3 Feb 2025 14:31:11 +0000 Subject: [PATCH 6/7] chore(release): regen protos Signed-off-by: mikeee --- dapr/src/dapr/dapr.proto.common.v1.rs | 32 +++++++++++------------ dapr/src/dapr/dapr.proto.runtime.v1.rs | 36 +++++++++++++------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/dapr/src/dapr/dapr.proto.common.v1.rs b/dapr/src/dapr/dapr.proto.common.v1.rs index f6681764..c21224b5 100644 --- a/dapr/src/dapr/dapr.proto.common.v1.rs +++ b/dapr/src/dapr/dapr.proto.common.v1.rs @@ -51,16 +51,16 @@ pub mod http_extension { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::None => "NONE", - Self::Get => "GET", - Self::Head => "HEAD", - Self::Post => "POST", - Self::Put => "PUT", - Self::Delete => "DELETE", - Self::Connect => "CONNECT", - Self::Options => "OPTIONS", - Self::Trace => "TRACE", - Self::Patch => "PATCH", + Verb::None => "NONE", + Verb::Get => "GET", + Verb::Head => "HEAD", + Verb::Post => "POST", + Verb::Put => "PUT", + Verb::Delete => "DELETE", + Verb::Connect => "CONNECT", + Verb::Options => "OPTIONS", + Verb::Trace => "TRACE", + Verb::Patch => "PATCH", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -198,9 +198,9 @@ pub mod state_options { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED", - Self::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE", - Self::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE", + StateConcurrency::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED", + StateConcurrency::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE", + StateConcurrency::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -238,9 +238,9 @@ pub mod state_options { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED", - Self::ConsistencyEventual => "CONSISTENCY_EVENTUAL", - Self::ConsistencyStrong => "CONSISTENCY_STRONG", + StateConsistency::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED", + StateConsistency::ConsistencyEventual => "CONSISTENCY_EVENTUAL", + StateConsistency::ConsistencyStrong => "CONSISTENCY_STRONG", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/dapr/src/dapr/dapr.proto.runtime.v1.rs b/dapr/src/dapr/dapr.proto.runtime.v1.rs index 07960f73..3cf6302b 100644 --- a/dapr/src/dapr/dapr.proto.runtime.v1.rs +++ b/dapr/src/dapr/dapr.proto.runtime.v1.rs @@ -105,9 +105,9 @@ pub mod topic_event_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Success => "SUCCESS", - Self::Retry => "RETRY", - Self::Drop => "DROP", + TopicEventResponseStatus::Success => "SUCCESS", + TopicEventResponseStatus::Retry => "RETRY", + TopicEventResponseStatus::Drop => "DROP", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -288,8 +288,8 @@ pub mod binding_event_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Sequential => "SEQUENTIAL", - Self::Parallel => "PARALLEL", + BindingEventConcurrency::Sequential => "SEQUENTIAL", + BindingEventConcurrency::Parallel => "PARALLEL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2422,9 +2422,9 @@ pub mod actor_runtime { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Initializing => "INITIALIZING", - Self::Disabled => "DISABLED", - Self::Running => "RUNNING", + ActorRuntimeStatus::Initializing => "INITIALIZING", + ActorRuntimeStatus::Disabled => "DISABLED", + ActorRuntimeStatus::Running => "RUNNING", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2674,10 +2674,10 @@ pub mod unlock_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Success => "SUCCESS", - Self::LockDoesNotExist => "LOCK_DOES_NOT_EXIST", - Self::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS", - Self::InternalError => "INTERNAL_ERROR", + Status::Success => "SUCCESS", + Status::LockDoesNotExist => "LOCK_DOES_NOT_EXIST", + Status::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS", + Status::InternalError => "INTERNAL_ERROR", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2732,8 +2732,8 @@ pub mod subtle_get_key_request { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Pem => "PEM", - Self::Json => "JSON", + KeyFormat::Pem => "PEM", + KeyFormat::Json => "JSON", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3314,10 +3314,10 @@ impl PubsubSubscriptionType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Unknown => "UNKNOWN", - Self::Declarative => "DECLARATIVE", - Self::Programmatic => "PROGRAMMATIC", - Self::Streaming => "STREAMING", + PubsubSubscriptionType::Unknown => "UNKNOWN", + PubsubSubscriptionType::Declarative => "DECLARATIVE", + PubsubSubscriptionType::Programmatic => "PROGRAMMATIC", + PubsubSubscriptionType::Streaming => "STREAMING", } } /// Creates an enum from field names used in the ProtoBuf definition. From b2299bbefb7b9afcb89f07b147abdb0ad71ab38a Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 3 Feb 2025 15:33:29 +0000 Subject: [PATCH 7/7] chore: regen protos from rc.9 Signed-off-by: mikeee --- dapr/src/dapr/dapr.proto.common.v1.rs | 32 +++++++++++------------ dapr/src/dapr/dapr.proto.runtime.v1.rs | 36 +++++++++++++------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/dapr/src/dapr/dapr.proto.common.v1.rs b/dapr/src/dapr/dapr.proto.common.v1.rs index c21224b5..f6681764 100644 --- a/dapr/src/dapr/dapr.proto.common.v1.rs +++ b/dapr/src/dapr/dapr.proto.common.v1.rs @@ -51,16 +51,16 @@ pub mod http_extension { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Verb::None => "NONE", - Verb::Get => "GET", - Verb::Head => "HEAD", - Verb::Post => "POST", - Verb::Put => "PUT", - Verb::Delete => "DELETE", - Verb::Connect => "CONNECT", - Verb::Options => "OPTIONS", - Verb::Trace => "TRACE", - Verb::Patch => "PATCH", + Self::None => "NONE", + Self::Get => "GET", + Self::Head => "HEAD", + Self::Post => "POST", + Self::Put => "PUT", + Self::Delete => "DELETE", + Self::Connect => "CONNECT", + Self::Options => "OPTIONS", + Self::Trace => "TRACE", + Self::Patch => "PATCH", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -198,9 +198,9 @@ pub mod state_options { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - StateConcurrency::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED", - StateConcurrency::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE", - StateConcurrency::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE", + Self::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED", + Self::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE", + Self::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -238,9 +238,9 @@ pub mod state_options { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - StateConsistency::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED", - StateConsistency::ConsistencyEventual => "CONSISTENCY_EVENTUAL", - StateConsistency::ConsistencyStrong => "CONSISTENCY_STRONG", + Self::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED", + Self::ConsistencyEventual => "CONSISTENCY_EVENTUAL", + Self::ConsistencyStrong => "CONSISTENCY_STRONG", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/dapr/src/dapr/dapr.proto.runtime.v1.rs b/dapr/src/dapr/dapr.proto.runtime.v1.rs index 3cf6302b..07960f73 100644 --- a/dapr/src/dapr/dapr.proto.runtime.v1.rs +++ b/dapr/src/dapr/dapr.proto.runtime.v1.rs @@ -105,9 +105,9 @@ pub mod topic_event_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - TopicEventResponseStatus::Success => "SUCCESS", - TopicEventResponseStatus::Retry => "RETRY", - TopicEventResponseStatus::Drop => "DROP", + Self::Success => "SUCCESS", + Self::Retry => "RETRY", + Self::Drop => "DROP", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -288,8 +288,8 @@ pub mod binding_event_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - BindingEventConcurrency::Sequential => "SEQUENTIAL", - BindingEventConcurrency::Parallel => "PARALLEL", + Self::Sequential => "SEQUENTIAL", + Self::Parallel => "PARALLEL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2422,9 +2422,9 @@ pub mod actor_runtime { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ActorRuntimeStatus::Initializing => "INITIALIZING", - ActorRuntimeStatus::Disabled => "DISABLED", - ActorRuntimeStatus::Running => "RUNNING", + Self::Initializing => "INITIALIZING", + Self::Disabled => "DISABLED", + Self::Running => "RUNNING", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2674,10 +2674,10 @@ pub mod unlock_response { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Status::Success => "SUCCESS", - Status::LockDoesNotExist => "LOCK_DOES_NOT_EXIST", - Status::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS", - Status::InternalError => "INTERNAL_ERROR", + Self::Success => "SUCCESS", + Self::LockDoesNotExist => "LOCK_DOES_NOT_EXIST", + Self::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS", + Self::InternalError => "INTERNAL_ERROR", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2732,8 +2732,8 @@ pub mod subtle_get_key_request { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - KeyFormat::Pem => "PEM", - KeyFormat::Json => "JSON", + Self::Pem => "PEM", + Self::Json => "JSON", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3314,10 +3314,10 @@ impl PubsubSubscriptionType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - PubsubSubscriptionType::Unknown => "UNKNOWN", - PubsubSubscriptionType::Declarative => "DECLARATIVE", - PubsubSubscriptionType::Programmatic => "PROGRAMMATIC", - PubsubSubscriptionType::Streaming => "STREAMING", + Self::Unknown => "UNKNOWN", + Self::Declarative => "DECLARATIVE", + Self::Programmatic => "PROGRAMMATIC", + Self::Streaming => "STREAMING", } } /// Creates an enum from field names used in the ProtoBuf definition.