Commit d4bef7d4 authored by Jisi Liu's avatar Jisi Liu

add warning notes for cc|py_proto_library rules.

To mention that the interface may change or be removed when bazel has
support it natively.
parent 59635c13
...@@ -105,6 +105,10 @@ def cc_proto_library( ...@@ -105,6 +105,10 @@ def cc_proto_library(
**kargs): **kargs):
"""Bazel rule to create a C++ protobuf library from proto source files """Bazel rule to create a C++ protobuf library from proto source files
NOTE: the rule is only an internal workaround to generate protos. The
interface may change and the rule may be removed when bazel has introduced
the native rule.
Args: Args:
name: the name of the cc_proto_library. name: the name of the cc_proto_library.
srcs: the .proto files of the cc_proto_library. srcs: the .proto files of the cc_proto_library.
...@@ -207,6 +211,10 @@ def py_proto_library( ...@@ -207,6 +211,10 @@ def py_proto_library(
**kargs): **kargs):
"""Bazel rule to create a Python protobuf library from proto source files """Bazel rule to create a Python protobuf library from proto source files
NOTE: the rule is only an internal workaround to generate protos. The
interface may change and the rule may be removed when bazel has introduced
the native rule.
Args: Args:
name: the name of the py_proto_library. name: the name of the py_proto_library.
srcs: the .proto files of the py_proto_library. srcs: the .proto files of the py_proto_library.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment