bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[swift_proto_library] Generated types are always public

tylervick opened this issue · comments

Currently the Visibility generation option is hardcoded to Public for all protobuf generation:

protoc_args.add("--swift_opt=Visibility=Public")

Certain use cases require a non-public access level for generated objects. For example, when creating a library without exposing messages to the consumer.

This is because each swift_proto_library ends up being a module. If it was anything other than public how would it be used?