Skip to content

Commit 0933656

Browse files
elena-kolevskazedgell
authored andcommitted
Updating protos for Dapr 1.12 (dapr#102)
* Updating to dapr runtime - master Signed-off-by: Elena Kolevska <[email protected]> * Updates the sdk version in the README. Gives the rest of the instructions in the file some love. Signed-off-by: Elena Kolevska <[email protected]> * Fixes typo Signed-off-by: Elena Kolevska <[email protected]> --------- Signed-off-by: Elena Kolevska <[email protected]> Signed-off-by: Zachary Edgell <[email protected]>
1 parent 0203647 commit 0933656

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

README.md

+20-13
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ Dapr is a portable, event-driven, serverless runtime for building distributed ap
2121
- [dapr.io](https://dapr.io)
2222
- [@DaprDev](https://twitter.com/DaprDev)
2323

24-
## Prerequsites
24+
## Prerequisites
2525

26-
* [Install Rust > 1.40](https://www.rust-lang.org/tools/install)
26+
Ensure you have Rust version 1.40 or higher installed. If not, install Rust [here](https://www.rust-lang.org/tools/install).
2727

28-
## Usage
28+
## How to use
29+
30+
Add the following to your `Cargo.toml` file:
2931

3032
```toml
3133
[dependencies]
32-
dapr = "0.12.0"
34+
dapr = "0.13.0"
3335
```
3436

35-
A client can be created as follows:
37+
Here's a basic example to create a client:
3638

3739
```rust
3840
use dapr;
@@ -46,25 +48,30 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4648
let mut client = dapr::Client::<dapr::client::TonicClient>::connect(addr).await?;
4749
```
4850

49-
## Try out examples
51+
## Explore more examples
5052

51-
[Examples](./examples)
53+
Browse through more examples to understand the SDK better: [View examples](./examples)
5254

5355
## Building
5456

55-
To build
57+
To build the SDK run:
5658

5759
```bash
5860
cargo build
5961
```
6062

61-
>Note: The proto buf client generation is built into `cargo build` process so updating the proto files under `dapr/` is enough to update the proto buf client.
63+
>Note: The protobuf client generation is built into `cargo build` process so updating the proto files under `dapr/` is enough to update the protobuf client.
64+
65+
## Updating .proto files from upstream Dapr
66+
67+
To fetch the latest .proto files from Dapr execute the script `update-protos.sh`:
6268

63-
## To refresh .proto files from upstream dapr
69+
```bash
70+
./update-protos.sh
71+
```
6472

65-
1. Just need to run update-protos.sh, which will basically fetch latest proto updates.
66-
2. By default, it picks from master proto. To specify a particular release/version, please specify with a -v flag
73+
By default, the script fetches the latest proto updates from the master branch of the Dapr repository. If you need to choose a specific release or version, use the -v flag:
6774

6875
```bash
69-
./update-protos.sh -v v1.10.1
76+
./update-protos.sh -v v1.12.0
7077
```

dapr/proto/runtime/v1/dapr.proto

+18
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,9 @@ message GetMetadataResponse {
585585
map<string, string> extended_metadata = 4 [json_name = "extended"];
586586
repeated PubsubSubscription subscriptions = 5 [json_name = "subscriptions"];
587587
repeated MetadataHTTPEndpoint http_endpoints = 6 [json_name = "httpEndpoints"];
588+
AppConnectionProperties app_connection_properties = 7 [json_name = "appConnectionProperties"];
589+
string runtime_version = 8 [json_name = "runtimeVersion"];
590+
repeated string enabled_features = 9 [json_name = "enabledFeatures"];
588591
}
589592

590593
message ActiveActorsCount {
@@ -603,6 +606,21 @@ message MetadataHTTPEndpoint {
603606
string name = 1 [json_name = "name"];
604607
}
605608

609+
message AppConnectionProperties {
610+
int32 port = 1;
611+
string protocol = 2;
612+
string channel_address = 3 [json_name = "channelAddress"];
613+
int32 max_concurrency = 4 [json_name = "maxConcurrency"];
614+
AppConnectionHealthProperties health = 5;
615+
}
616+
617+
message AppConnectionHealthProperties {
618+
string health_check_path = 1 [json_name = "healthCheckPath"];
619+
string health_probe_interval = 2 [json_name = "healthProbeInterval"];
620+
string health_probe_timeout = 3 [json_name = "healthProbeTimeout"];
621+
int32 health_threshold = 4 [json_name = "healthThreshold"];
622+
}
623+
606624
message PubsubSubscription {
607625
string pubsub_name = 1 [json_name = "pubsubname"];
608626
string topic = 2 [json_name = "topic"];

0 commit comments

Comments
 (0)