upb: delete upb:upb, upb:collections, upb/upb.hpp, upb/collections/

PiperOrigin-RevId: 597923328
pull/15427/head
Eric Salo 1 year ago committed by Copybara-Service
parent f2a91b33e1
commit 8d0bfb0a5a
  1. 1
      python/dist/BUILD.bazel
  2. 22
      upb/BUILD
  3. 1
      upb/cmake/BUILD.bazel
  4. 40
      upb/collections/BUILD
  5. 17
      upb/collections/array.h
  6. 17
      upb/collections/map.h
  7. 18
      upb/upb.hpp

@ -239,7 +239,6 @@ pkg_files(
"//python:message_srcs",
"//upb:source_files",
"//upb/base:source_files",
"//upb/collections:source_files",
"//upb/hash:source_files",
"//upb/lex:source_files",
"//upb/mem:source_files",

@ -79,20 +79,6 @@ package_group(
packages = ["//..."],
)
cc_library(
name = "upb",
hdrs = [
"upb.hpp",
],
copts = UPB_DEFAULT_COPTS,
deprecation = "use upb:base and/or upb:mem instead",
visibility = ["//visibility:public"],
deps = [
":base",
":mem",
],
)
# Common support routines used by generated code. This library has no
# implementation, but depends on :upb and exposes a few more hdrs.
#
@ -137,13 +123,6 @@ alias(
visibility = ["//visibility:public"],
)
alias(
name = "collections",
actual = "//upb/collections",
deprecation = "use upb:message instead",
visibility = ["//visibility:public"],
)
alias(
name = "descriptor_upb_proto",
actual = "//upb/reflection:descriptor_upb_proto",
@ -423,7 +402,6 @@ filegroup(
srcs = glob(
[
"**/*.h",
"**/*.hpp",
],
exclude = [
"**/conformance_upb.c",

@ -89,7 +89,6 @@ sh_test(
"//third_party/utf8_range:utf8_range_srcs",
"//upb:source_files",
"//upb/base:source_files",
"//upb/collections:source_files",
"//upb/hash:source_files",
"//upb/lex:source_files",
"//upb/mem:source_files",

@ -1,40 +0,0 @@
# Copyright (c) 2009-2021, Google LLC
# All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
load("//bazel:build_defs.bzl", "UPB_DEFAULT_COPTS")
# begin:google_only
# package(default_applicable_licenses = ["//upb:license"])
# end:google_only
cc_library(
name = "collections",
hdrs = [
"array.h",
"map.h",
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
deps = [
"//upb:message",
],
)
# begin:github_only
filegroup(
name = "source_files",
srcs = glob(
[
"**/*.h",
],
),
visibility = [
"//python/dist:__pkg__",
"//upb/cmake:__pkg__",
],
)
# end:github_only

@ -1,17 +0,0 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// Temporary hack to fix gRPC. Do not use.
#ifndef UPB_COLLECTIONS_ARRAY_H_
#define UPB_COLLECTIONS_ARRAY_H_
// IWYU pragma: begin_exports
#include "upb/message/array.h"
// IWYU pragma: end_exports
#endif /* UPB_COLLECTIONS_ARRAY_H_ */

@ -1,17 +0,0 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// Temporary hack to fix gRPC. Do not use.
#ifndef UPB_COLLECTIONS_MAP_H_
#define UPB_COLLECTIONS_MAP_H_
// IWYU pragma: begin_exports
#include "upb/message/map.h"
// IWYU pragma: end_exports
#endif /* UPB_COLLECTIONS_MAP_H_ */

@ -1,18 +0,0 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// Temporary hack to fix gRPC. Do not use.
#ifndef UPB_HPP_
#define UPB_HPP_
// IWYU pragma: begin_exports
#include "upb/base/status.hpp"
#include "upb/mem/arena.hpp"
// IWYU pragma: end_exports
#endif // UPB_HPP_
Loading…
Cancel
Save