Skip to content

Well-known-types support #276

Open
Open
@vladbat00

Description

@vladbat00

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions