Skip to content

astarte-platform/astarte-message-hub-proto

Repository files navigation

Astarte message hub proto

This repository contains the .proto files used by the Astarte message hub as well as by any client that wishes to connect itself to the message hub.

Protobuf and gRPC versions

For each of the supported languages this repository contains also the compiled protobuf definitions contained in the .proto files. In addition the gRPC services for those .proto files are also generated. Since different languages may use different gRPC implementations and protobuf compilers here is a table with the used versions.

Language gRPC library gRPC library version Protoc version
Rust tonic v0.11.0 29.3
Python grpc v1.69.0 29.0
C++ grpc v1.69.0 29.0

Code generation

This project contains a Makefile that allows you to generate code for all supported languages. Currently, the following languages are supported:

  • Rust
  • Python
  • C++

Build

Build everything and generate the code for the various languages.

make

Install

Install all language code files generated by the all rule in the repo folder.

make install

Build language

Build and generate code for specific language.

make rust

Install the generated code

Install language-code files generated by the <lang> rule in the repo folder.

make rust-install

Help

Run help for more details on the rules defined in the makefile:

make help