rules_proto_grpc/defs.bzl

28 lines
1.1 KiB
Python
Raw Normal View History

2021-02-14 20:14:48 +00:00
"""Top level definition exports for rules_proto_grpc."""
2022-12-01 21:53:45 +00:00
load("//internal:common.bzl", _bazel_build_rule_common_attrs = "bazel_build_rule_common_attrs")
2023-03-22 21:22:23 +00:00
load("//internal:compile.bzl", _proto_compile = "proto_compile", _proto_compile_attrs = "proto_compile_attrs", _proto_compile_impl = "proto_compile_impl")
2022-02-13 21:57:25 +00:00
load("//internal:filter_files.bzl", _filter_files = "filter_files")
2021-02-14 18:03:31 +00:00
load("//internal:plugin.bzl", _proto_plugin = "proto_plugin")
load("//internal:providers.bzl", _ProtoCompileInfo = "ProtoCompileInfo", _ProtoPluginInfo = "ProtoPluginInfo")
2021-02-14 18:03:31 +00:00
# Export providers
ProtoPluginInfo = _ProtoPluginInfo
ProtoCompileInfo = _ProtoCompileInfo
# Export plugin rule
proto_plugin = _proto_plugin
# Export compile rule implementation and attrs
2021-02-14 18:03:31 +00:00
proto_compile_attrs = _proto_compile_attrs
proto_compile_impl = _proto_compile_impl
2022-02-13 21:57:25 +00:00
2023-03-22 21:22:23 +00:00
# Export compilation function, which can be wrapped by external rules that need more
# pre-configuration than proto_compile_impl alone allows. e.g third party versions of
# doc_template_compile_impl-like rules
proto_compile = _proto_compile
2022-02-13 21:57:25 +00:00
# Export utils
2022-12-01 21:53:45 +00:00
bazel_build_rule_common_attrs = _bazel_build_rule_common_attrs
2022-02-13 21:57:25 +00:00
filter_files = _filter_files