From 0e1618fa83f89c05e13b1b55076acf83e0631170 Mon Sep 17 00:00:00 2001 From: Ivo List Date: Thu, 7 Nov 2024 13:42:47 +0100 Subject: [PATCH] Adding deprecated comment --- cc/defs.bzl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cc/defs.bzl b/cc/defs.bzl index 3c27174..4fccdcc 100644 --- a/cc/defs.bzl +++ b/cc/defs.bzl @@ -43,7 +43,12 @@ cc_shared_library = _cc_shared_library objc_library = _objc_library objc_import = _objc_import -cc_proto_library = _cc_proto_library # For compatibility with current users +# DEPRECATED: use rule from com_google_protobuf repository +def cc_proto_library(**kwargs): + if "deprecation" not in kwargs: + _cc_proto_library(deprecation = "Use cc_proto_library from com_google_protobuf", **kwargs) + else: + _cc_proto_library(**kwargs) # Toolchain rules