Starlark rules for building protocol buffers.

proto_descriptor_set

Collects all FileDescriptorSets from deps and combines them into a single FileDescriptorSet containing all the FileDescriptorProto.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsSequence of ProtoInfos to collect FileDescriptorSets from.List of labelsoptional[]

proto_lang_toolchain

Creates a proto_lang_toolchain and corresponding toolchain target.

Toolchain target is only created when toolchain_type is set.

https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_lang_toolchain

PARAMETERS

NameDescriptionDefault Value
namename of the toolchainnone
toolchain_typeThe toolchain typeNone
exec_compatible_with([constraints]) List of constraints the prebuild binaries is compatible with.[]
target_compatible_with([constraints]) List of constraints the target libraries are compatible with.[]
attrsRule attributesnone

proto_library

Bazel proto_library rule.

https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library

PARAMETERS

NameDescriptionDefault Value
attrsRule attributesnone

proto_toolchain

Creates a proto_toolchain and toolchain target for proto_library.

Toolchain target is suffixed with “_toolchain”.

PARAMETERS

NameDescriptionDefault Value
namename of the toolchainnone
proto_compiler(Label) of either proto compiler sources or prebuild binariesnone
exec_compatible_with([constraints]) List of constraints the prebuild binary is compatible with.[]