Dapr SDK for Rust

Crates.io Build Status License: MIT

⚠ Work in Progress ⚠

Dapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.

Prerequsites

Usage

toml [dependencies] dapr = "0.2.0-alpha.0"

A client can be created as follows:

```rust use dapr;

async fn main() -> Result<(), Box> { // Get the Dapr port and create a connection let port: u16 = std::env::var("DAPRGRPCPORT")?.parse()?; let addr = format!("https://127.0.0.1:{}", port);

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

```

Try out examples

Examples

Building

To build

bash cargo build

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.