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.
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 |
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 everything and generate the code for the various languages.
make
Install all language code files generated by the all
rule in the repo folder.
make install
Build and generate code for specific language.
make rust
Install language-code files generated by the <lang>
rule in the repo folder.
make rust-install
Run help
for more details on the rules defined in the makefile:
make help