From 0e1cee140d075c71d5200d7d190faeb3ef122714 Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 19 Aug 2024 13:01:41 +0100 Subject: [PATCH 1/3] fix: update documentation and proto script Signed-off-by: mikeee --- README.md | 8 +++++++- update-protos.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1686ad1..d01b895 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ cargo build >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. -## Updating .proto files from upstream Dapr +## Developing (Updating .proto files from upstream Dapr) To fetch the latest .proto files from Dapr execute the script `update-protos.sh`: @@ -98,6 +98,12 @@ By default, the script fetches the latest proto updates from the master branch o ./update-protos.sh -v v1.14.0 ``` +Protos can then be compiled using: + +```bash +cargo run proto-gen +``` + ### Contact Us Reach out with any questions you may have and we'll be sure to answer them as soon as possible! diff --git a/update-protos.sh b/update-protos.sh index e094678..7770e9e 100755 --- a/update-protos.sh +++ b/update-protos.sh @@ -21,7 +21,7 @@ RUNTIME="runtime" RUNTIME_RELEASE_TAG="master" # Path to store output -PROTO_PATH="dapr/proto" +PROTO_PATH="proto/dapr/proto" # Http request CLI HTTP_REQUEST_CLI=curl From 60f963c12099d61c3166c84c989343f222f2c924 Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 19 Aug 2024 13:02:15 +0100 Subject: [PATCH 2/3] docs: add missing closure Signed-off-by: mikeee --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d01b895..f849959 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ async fn main() -> Result<(), Box> { // Create the client let mut client = dapr::Client::::connect(addr).await?; +} ``` ## Explore more examples From a13fdc38d46cee4652571bf11da22f9ea16f88b1 Mon Sep 17 00:00:00 2001 From: mikeee Date: Mon, 19 Aug 2024 13:02:33 +0100 Subject: [PATCH 3/3] chore: exclude proto-gen and examples Signed-off-by: mikeee --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a538c3d..4fd1ce6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,9 @@ members = [ "dapr", "dapr-macros", - "examples", +] +exclude = [ "proto-gen", + "examples", ] resolver = "2"