Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc changes and updates related to proto-gen and examples #210

Merged
merged 3 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
members = [
"dapr",
"dapr-macros",
"examples",
]
exclude = [
"proto-gen",
"examples",
]
resolver = "2"
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

// Create the client
let mut client = dapr::Client::<dapr::client::TonicClient>::connect(addr).await?;
}
```

## Explore more examples
Expand All @@ -84,7 +85,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`:

Expand All @@ -98,6 +99,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!
Expand Down
2 changes: 1 addition & 1 deletion update-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading