Skip to content

Proposal to allow multiple service interface implementations for a single .proto #18

@fraenkel

Description

@fraenkel

Support generation of multiple service interface code implementations via different plugins from a single .proto.
A user should be able to target a specific .proto and specify the plugin, and resulting import package location which provides the target directory for any generated code as well as the package name.
It is the users responsibility to prevent collisions between the multiple plugins.

One use-case of this feature would be to generate ttrpc and grpc service implementations for a given .proto service defintiion.

An experiment was perfomed to see what could be possible with minimal modifications to Protobuild
while leveraging the capabilities of protoc and the existing generators. By providing arguments for
the import path, and output directory, protoc can be controlled to generate what is needed.

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