소스 검색

Merge pull request #930 from pherl/bazel_test

add warning notes for cc|py_proto_library rules.
Jisi Liu 10 년 전
부모
커밋
aa3675415e
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      protobuf.bzl

+ 8 - 0
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.