Avoid recursive call to `Insert` in the flat case.
[google-protobuf.git] / bazel / upb_proto_library.bzl
blob1c8d552f0d817887f25858f6392eace1631cfc59
1 # Copyright (c) 2009-2021, 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
8 """Public rules for using upb protos:
9   - upb_proto_library()
10   - upb_proto_reflection_library()
11 """
13 load(
14     "//bazel:upb_c_proto_library.bzl",
15     _UpbWrappedCcInfo = "UpbWrappedCcInfo",
16     _upb_c_proto_library = "upb_c_proto_library",
17     _upb_c_proto_library_aspect = "upb_c_proto_library_aspect",
19 load(
20     "//bazel:upb_proto_reflection_library.bzl",
21     _upb_proto_reflection_library = "upb_proto_reflection_library",
23 load(
24     "//bazel/private:upb_proto_library_internal/aspect.bzl",
25     _GeneratedSrcsInfo = "GeneratedSrcsInfo",
28 # Temporary alias, see b/291827469.
29 upb_proto_library = _upb_c_proto_library
31 upb_c_proto_library = _upb_c_proto_library
32 upb_proto_reflection_library = _upb_proto_reflection_library
33 GeneratedSrcsInfo = _GeneratedSrcsInfo
34 UpbWrappedCcInfo = _UpbWrappedCcInfo
35 upb_proto_library_aspect = _upb_c_proto_library_aspect