Skip to content

Commit cc2d18d

Browse files
authored
fix: add experimental proto optionals and cleanup protos for 1-rc.1 (#212)
* fix: add experimental proto optionals and cleanup protos for 1-rc.1 Signed-off-by: mikeee <[email protected]> * chore: fmt Signed-off-by: mikeee <[email protected]> --------- Signed-off-by: mikeee <[email protected]>
1 parent bc728d5 commit cc2d18d

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dapr"
3-
version = "0.15.0"
3+
version = "0.15.1-rc.1"
44
authors = ["dapr.io"]
55
edition = "2021"
66
license = "Apache-2.0"
@@ -10,7 +10,7 @@ readme = "README.md"
1010
keywords = ["microservices", "dapr"]
1111

1212
[dependencies]
13-
dapr-macros = { version = "0.15.0", path = "macros" }
13+
dapr-macros = { version = "0.15.1-rc.1", path = "macros" }
1414
futures = "0.3"
1515
tonic = "0.11.0"
1616
prost = "0.12.3"

build.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
fn main() -> Result<(), std::io::Error> {
44
// env::set_var("OUT_DIR", "src");
5-
tonic_build::configure().build_server(true).compile(
6-
&[
7-
"dapr/proto/common/v1/common.proto",
8-
"dapr/proto/runtime/v1/dapr.proto",
9-
"dapr/proto/runtime/v1/appcallback.proto",
10-
"examples/invoke/proto/helloworld.proto",
11-
],
12-
&["."],
13-
)?;
5+
tonic_build::configure()
6+
.protoc_arg("--experimental_allow_proto3_optional")
7+
.build_server(true)
8+
.compile(
9+
&[
10+
"dapr/proto/common/v1/common.proto",
11+
"dapr/proto/runtime/v1/dapr.proto",
12+
"dapr/proto/runtime/v1/appcallback.proto",
13+
"examples/invoke/proto/helloworld.proto",
14+
],
15+
&["."],
16+
)?;
1417
Ok(())
1518
}

dapr/proto/runtime/v1/dapr.proto

+7-6
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ message InvokeBindingRequest {
493493
//
494494
// Common metadata property:
495495
// - ttlInSeconds : the time to live in seconds for the message.
496+
//
496497
// If set in the binding definition will cause all messages to
497498
// have a default time to live. The message ttl overrides any value
498499
// in the binding definition.
@@ -839,11 +840,11 @@ message TryLockRequest {
839840
//
840841
// The reason why we don't make it automatically generated is:
841842
// 1. If it is automatically generated,there must be a 'my_lock_owner_id' field in the response.
842-
// This name is so weird that we think it is inappropriate to put it into the api spec
843+
// This name is so weird that we think it is inappropriate to put it into the api spec
843844
// 2. If we change the field 'my_lock_owner_id' in the response to 'lock_owner',which means the current lock owner of this lock,
844-
// we find that in some lock services users can't get the current lock owner.Actually users don't need it at all.
845+
// we find that in some lock services users can't get the current lock owner.Actually users don't need it at all.
845846
// 3. When reentrant lock is needed,the existing lock_owner is required to identify client and check "whether this client can reenter this lock".
846-
// So this field in the request shouldn't be removed.
847+
// So this field in the request shouldn't be removed.
847848
string lock_owner = 3 [json_name = "lockOwner"];
848849

849850
// Required. The time before expiry.The time unit is second.
@@ -880,7 +881,7 @@ message SubtleGetKeyRequest {
880881
// JSON (JSON Web Key) as string
881882
JSON = 1;
882883
}
883-
884+
884885
// Name of the component
885886
string component_name = 1 [json_name="componentName"];
886887
// Name (or name/version) of the key to use in the key vault
@@ -1062,7 +1063,7 @@ message EncryptRequestOptions {
10621063
// If true, the encrypted document does not contain a key reference.
10631064
// In that case, calls to the Decrypt method must provide a key reference (name or name/version).
10641065
// Defaults to false.
1065-
bool omit_decryption_key_name = 11 [json_name="omitDecryptionKeyName"];
1066+
bool omit_decryption_key_name = 11 [json_name="omitDecryptionKeyName"];
10661067
// Key reference to embed in the encrypted document (name or name/version).
10671068
// This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it.
10681069
// If unset, uses the reference of the key used to encrypt the document (this is the default behavior).
@@ -1273,4 +1274,4 @@ message DeleteJobRequest {
12731274
// DeleteJobResponse is the message response to delete the job by name.
12741275
message DeleteJobResponse {
12751276
// Empty
1276-
}
1277+
}

macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dapr-macros"
3-
version = "0.15.0"
3+
version = "0.15.1-rc.1"
44
edition = "2021"
55
description = "Dapr Rust SDK"
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)