The Wayback Machine - https://web.archive.org/web/20201212170731/https://github.com/dapr/rust-sdk
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Dapr SDK for Rust

License: MIT

Work in Progress

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

Prerequsites

Usage

A client can be created as follows:

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.

About

Dapr SDK for Rust - WIP

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.