rules-proto-grpc / rules_proto_grpc

Bazel rules for building Protobuf and gRPC code and libraries from proto_library targets
https://rules-proto-grpc.com
Apache License 2.0
249 stars 156 forks source link

Support NO_PREFIX output_mode for cpp rules #276

Closed jemeador closed 1 year ago

jemeador commented 1 year ago

Related feature request: https://github.com/rules-proto-grpc/rules_proto_grpc/issues/267

When using output_mode = "NO_PREFIX", the generated headers are available in both name_pb and ".". The "NOPREFIX" option presents an optimization opportunity to reduce the number of unique include paths to pass to the compiler (at the risk of creating conflicts) when multiple `cpp` rules are in a package.