6 releases (breaking)

0.5.0 Apr 1, 2021
0.4.0-alpha.0 Feb 12, 2021
0.3.0-alpha.0 Jan 29, 2021
0.2.0-alpha.0 Dec 18, 2020
0.1.0-alpha.2 Oct 29, 2019

#8 in #microservices

Download history 33/week @ 2021-04-14 36/week @ 2021-04-21 3/week @ 2021-04-28 14/week @ 2021-05-05 39/week @ 2021-05-12 3/week @ 2021-05-19 24/week @ 2021-05-26 4/week @ 2021-06-02 13/week @ 2021-06-09 9/week @ 2021-06-16 3/week @ 2021-06-23 3/week @ 2021-06-30 26/week @ 2021-07-07 29/week @ 2021-07-14 4/week @ 2021-07-21 32/week @ 2021-07-28

67 downloads per month

Custom license

24KB
417 lines

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

[dependencies]
dapr = "0.4.0-alpha.0"

A client can be created as follows:

use dapr;

async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Get the Dapr port and create a connection
    let port: u16 = std::env::var("DAPR_GRPC_PORT")?.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

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.

Dependencies

~6.5MB
~110K SLoC