aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2015-11-02 12:24:32 -0800
committerGravatar Jisi Liu <jisi.liu@gmail.com>2015-11-02 12:24:32 -0800
commitd4bef7d41b684adddd77bc255407ac968f0c163e (patch)
treef58092d0b2fbad2fe0bb327ff10d67a97b039699
parent59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c (diff)
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.
-rw-r--r--protobuf.bzl8
1 files changed, 8 insertions, 0 deletions
diff --git a/protobuf.bzl b/protobuf.bzl
index e8bc455b..9ed7c54a 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -105,6 +105,10 @@ def cc_proto_library(
**kargs):
"""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:
name: the name of the cc_proto_library.
srcs: the .proto files of the cc_proto_library.
@@ -207,6 +211,10 @@ def py_proto_library(
**kargs):
"""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:
name: the name of the py_proto_library.
srcs: the .proto files of the py_proto_library.