Skip to content

Multiple proto generation/linking causing compilation issue #300

Closed
@dfreese

Description

@dfreese

I've tried to put a minimally reproducible example of the problem I was running into here

When going from commit 5c0e90a to commit 7cde1e46, via #240, I was getting compilation errors, of

the trait bound `server::EchoImpl: echo_rust_grpc_proto::Echo` is not satisfied

when importing a server implementation from another file that's trying to create a gRPC/protobuf server. This is using the rust_library, rust_executable, proto_library, and rust_grpc_library rules.

The compilation between those two different commits seems nearly identical, but in the failing case, the SUBCOMMAND: # //proto:echo_proto seems to be run twice, and then linked into the executable twice.

I'm new to rust. Is this something incorrect in that workspace setup, or is something else going wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions