Starlark rules for building protocol buffers.
Collects all FileDescriptorSet
s from deps
and combines them into a single FileDescriptorSet
containing all the FileDescriptorProto
.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
deps | Sequence of ProtoInfos to collect FileDescriptorSets from. | List of labels | optional | [] |
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
Name | Description | Default Value |
---|---|---|
name | name of the toolchain | none |
toolchain_type | The toolchain type | None |
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. | [] |
attrs | Rule attributes | none |
Bazel proto_library rule.
https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library
PARAMETERS
Name | Description | Default Value |
---|---|---|
attrs | Rule attributes | none |
Creates a proto_toolchain and toolchain target for proto_library.
Toolchain target is suffixed with “_toolchain”.
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | name of the toolchain | none |
proto_compiler | (Label) of either proto compiler sources or prebuild binaries | none |
exec_compatible_with | ([constraints]) List of constraints the prebuild binary is compatible with. | [] |