Rust 如何跨多个微服务共享.proto消息?

Rust 如何跨多个微服务共享.proto消息?,rust,rust-cargo,tonic,prost,Rust,Rust Cargo,Tonic,Prost,我正在尝试创建一系列的微服务。大多数grpc消息都使用此消息 message i18n { map<string, string> translations = 0; } 有没有可能我可以用它来做 如果没有,您能否分享您使用prost库的经验以及如何共享代码 // cargo.toml [dependencies] i18n = { git = "url" branch= "main" }

我正在尝试创建一系列的微服务。大多数grpc消息都使用此消息

message i18n {
  map<string, string> translations = 0;
}
有没有可能我可以用它来做

如果没有,您能否分享您使用prost库的经验以及如何共享代码

// cargo.toml
[dependencies]
i18n = { git = "url" branch= "main" }