Dapr SDK for Rust
⚠ Work in Progress ⚠
Dapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.
Prerequisites
Ensure you have Rust version 1.40 or higher installed. If not, install Rust here.
How to use
Add the following to your Cargo.toml
file:
[]
= "0.14.0"
Here's a basic example to create a client:
use dapr;
async
Explore more examples
Browse through more examples to understand the SDK better: View examples
Building
To build the SDK run:
Note: The protobuf client generation is built into
cargo build
process so updating the proto files underdapr/
is enough to update the protobuf client.
Updating .proto files from upstream Dapr
To fetch the latest .proto files from Dapr execute the script update-protos.sh
:
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: