Simplify generated string_view APIs.
[google-protobuf.git] / bazel / java_lite_proto_library.bzl
blobf3ed40803aa0c1a676698248b61431d8ec050974
1 # Copyright (c) 2009-2024, Google LLC
2 # All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file or at
6 # https://developers.google.com/open-source/licenses/bsd
7 """java_lite_proto_library rule"""
9 load("//bazel/private:java_lite_proto_library.bzl", _java_lite_proto_library = "java_lite_proto_library")  # buildifier: disable=bzl-visibility
11 def java_lite_proto_library(**kwattrs):
12     # Only use Starlark rules when they are removed from Bazel
13     if not hasattr(native, "java_lite_proto_library"):
14         _java_lite_proto_library(**kwattrs)
15     else:
16         native.java_lite_proto_library(**kwattrs)