wcs1only / cpp-sdk

C++ SDK for Dapr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ SDK for Dapr

Alpha quality.

Prerequisites

Note: C++ highly depends on the installed dependencies in the system. This project uses VSCode Remote Container environment to build and develop cpp-sdk in a consistent way.

  1. Install Docker CLI
  2. Install VSCode
  3. Install VSCode Remote - Container extension

Generate gRPC client

  1. Copy dapr.proto from https://github.com/dapr/dapr/tree/master/pkg/proto/dapr to proto
  2. Copy daprclient.proto from https://github.com/dapr/dapr/tree/master/pkg/proto/daprclient to proto
  3. Generate client
    make ./dapr/proto/common/v1/common.pb.cc
    make ./dapr/proto/runtime/v1/dapr.grpc.pb.cc
    make ./dapr/proto/runtime/v1/dapr.pb.cc
    make ./dapr/proto/runtime/v1/appcallback.grpc.pb.cc
    make ./dapr/proto/runtime/v1/appcallback.pb.cc

Build library

  1. Make sure that you enable vscode remote container
  2. Build client
    make all

About

C++ SDK for Dapr

License:MIT License


Languages

Language:Makefile 51.5%Language:Dockerfile 48.5%