Open
Description
Consider the following Service:
service Crow {
rpc Hello (google.protobuf.Empty) returns (Caw);
}
This is what compiler generates for it:
pub trait Crow {
fn hello(&mut self, ctx: ::grpcio::RpcContext, req: super::empty::Empty, sink: ::grpcio::UnarySink<super::hello::Caw>);
}
^ And compilation obviously fails, because super
has no empty
module in its scope.
rust-protobuf
seems to have support for well-known-types, and I think it's possible to reuse it. Haven't dug too much into the code, but if I'm not mistaken all the needed modules and methods are public, so maybe it won't be very painful to implement.