The protobuf protocol for RobustMQ grpc server.
- broker_mqtt
- journal_server
- placement_center
cargo add robustmq-proto-build --git=https://github.com/robustmq/robustmq-proto.git --build
Import proto file directly
If you want to generate your own protobuf protocol, you can add this repo as submodule in your project.
git submodule add https://github.com/robustmq/robustmq-proto.git ./robustmq-proto
Install crate from git as first. And add the following code into your build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> {
robustmq_proto_build::setup()?;
Ok(())
}