The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4027 lines
123 KiB

# gRPC Bazel BUILD file.
#
# Copyright 2016 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load(
"//bazel:grpc_build_system.bzl",
"grpc_cc_library",
"grpc_generate_one_off_targets",
"grpc_upb_proto_library",
"grpc_upb_proto_reflection_library",
"python_config_settings",
)
load("@bazel_skylib//lib:selects.bzl", "selects")
licenses(["reciprocal"])
package(
default_visibility = ["//visibility:public"],
features = [
"layering_check",
"-parse_headers",
],
)
exports_files([
"LICENSE",
"etc/roots.pem",
])
exports_files(
glob(["include/**"]),
visibility = ["//:__subpackages__"],
)
config_setting(
name = "grpc_no_ares",
values = {"define": "grpc_no_ares=true"},
)
config_setting(
name = "grpc_no_xds_define",
values = {"define": "grpc_no_xds=true"},
)
config_setting(
name = "grpc_experiments_are_final_define",
values = {"define": "grpc_experiments_are_final=true"},
)
# When gRPC is build as shared library, binder transport code might still
# get included even when user's code does not depend on it. In that case
# --define=grpc_no_binder=true can be used to disable binder transport
# related code to reduce binary size.
# For users using build system other than bazel, they can define
# GRPC_NO_BINDER to achieve the same effect.
config_setting(
name = "grpc_no_binder_define",
values = {"define": "grpc_no_binder=true"},
)
config_setting(
name = "android",
values = {"crosstool_top": "//external:android/crosstool"},
)
config_setting(
name = "ios",
values = {"apple_platform_type": "ios"},
)
config_setting(
name = "systemd",
values = {"define": "use_systemd=true"},
)
selects.config_setting_group(
name = "grpc_no_xds",
match_any = [
":grpc_no_xds_define",
# In addition to disabling XDS support when --define=grpc_no_xds=true is
# specified, we also disable it on mobile platforms where it is not
# likely to be needed and where reducing the binary size is more
# important.
":android",
":ios",
],
)
selects.config_setting_group(
name = "grpc_no_binder",
match_any = [
":grpc_no_binder_define",
# We do not need binder on ios.
":ios",
],
)
selects.config_setting_group(
name = "grpc_no_rls",
match_any = [
# Disable RLS support on mobile platforms where it is not likely to be
# needed and where reducing the binary size is more important.
":android",
":ios",
],
)
selects.config_setting_group(
name = "grpc_experiments_are_final",
match_any = [
":grpc_experiments_are_final_define",
# In addition to disabling experiments when
# --define=grpc_experiments_are_final=true is specified, we also disable
# them on mobile platforms where runtime configuration of experiments is unlikely to be needed and where
# reducing the binary size is more important.
":android",
":ios",
],
)
# Fuzzers can be built as fuzzers or as tests
config_setting(
name = "grpc_build_fuzzers",
values = {"define": "grpc_build_fuzzers=true"},
)
config_setting(
name = "grpc_allow_exceptions",
values = {"define": "GRPC_ALLOW_EXCEPTIONS=1"},
)
config_setting(
name = "grpc_disallow_exceptions",
values = {"define": "GRPC_ALLOW_EXCEPTIONS=0"},
)
config_setting(
name = "remote_execution",
values = {"define": "GRPC_PORT_ISOLATED_RUNTIME=1"},
)
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)
config_setting(
name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)
config_setting(
name = "mac_x86_64",
values = {"cpu": "darwin"},
)
config_setting(
name = "mac_arm64",
values = {"cpu": "darwin_arm64"},
)
config_setting(
name = "use_strict_warning",
values = {"define": "use_strict_warning=true"},
)
python_config_settings()
# This should be updated along with build_handwritten.yaml
g_stands_for = "gracious" # @unused
core_version = "30.1.0" # @unused
version = "1.54.0-dev" # @unused
8 years ago
GPR_PUBLIC_HDRS = [
"include/grpc/support/alloc.h",
"include/grpc/support/atm_gcc_atomic.h",
"include/grpc/support/atm_gcc_sync.h",
"include/grpc/support/atm_windows.h",
"include/grpc/support/cpu.h",
"include/grpc/support/log.h",
"include/grpc/support/log_windows.h",
"include/grpc/support/port_platform.h",
"include/grpc/support/string_util.h",
"include/grpc/support/sync.h",
"include/grpc/support/sync_abseil.h",
"include/grpc/support/sync_custom.h",
8 years ago
"include/grpc/support/sync_generic.h",
"include/grpc/support/sync_posix.h",
"include/grpc/support/sync_windows.h",
"include/grpc/support/thd_id.h",
8 years ago
"include/grpc/support/time.h",
"include/grpc/impl/codegen/atm.h",
"include/grpc/impl/codegen/atm_gcc_atomic.h",
"include/grpc/impl/codegen/atm_gcc_sync.h",
"include/grpc/impl/codegen/atm_windows.h",
"include/grpc/impl/codegen/fork.h",
"include/grpc/impl/codegen/gpr_types.h",
"include/grpc/impl/codegen/log.h",
"include/grpc/impl/codegen/port_platform.h",
"include/grpc/impl/codegen/sync.h",
"include/grpc/impl/codegen/sync_abseil.h",
"include/grpc/impl/codegen/sync_custom.h",
"include/grpc/impl/codegen/sync_generic.h",
"include/grpc/impl/codegen/sync_posix.h",
"include/grpc/impl/codegen/sync_windows.h",
8 years ago
]
8 years ago
GRPC_PUBLIC_HDRS = [
"include/grpc/byte_buffer.h",
"include/grpc/byte_buffer_reader.h",
"include/grpc/compression.h",
"include/grpc/fork.h",
8 years ago
"include/grpc/grpc.h",
"include/grpc/grpc_posix.h",
"include/grpc/grpc_security.h",
8 years ago
"include/grpc/grpc_security_constants.h",
"include/grpc/slice.h",
"include/grpc/slice_buffer.h",
"include/grpc/status.h",
"include/grpc/load_reporting.h",
8 years ago
"include/grpc/support/workaround_list.h",
"include/grpc/impl/codegen/byte_buffer.h",
"include/grpc/impl/codegen/byte_buffer_reader.h",
"include/grpc/impl/codegen/compression_types.h",
"include/grpc/impl/codegen/connectivity_state.h",
"include/grpc/impl/codegen/grpc_types.h",
"include/grpc/impl/codegen/propagation_bits.h",
"include/grpc/impl/codegen/status.h",
"include/grpc/impl/codegen/slice.h",
"include/grpc/impl/compression_types.h",
"include/grpc/impl/connectivity_state.h",
"include/grpc/impl/grpc_types.h",
"include/grpc/impl/propagation_bits.h",
"include/grpc/impl/slice_type.h",
8 years ago
]
GRPC_PUBLIC_EVENT_ENGINE_HDRS = [
"include/grpc/event_engine/endpoint_config.h",
"include/grpc/event_engine/event_engine.h",
"include/grpc/event_engine/port.h",
"include/grpc/event_engine/memory_allocator.h",
"include/grpc/event_engine/memory_request.h",
"include/grpc/event_engine/internal/memory_allocator_impl.h",
"include/grpc/event_engine/slice.h",
"include/grpc/event_engine/slice_buffer.h",
"include/grpc/event_engine/internal/slice_cast.h",
]
GRPCXX_SRCS = [
"src/cpp/client/channel_cc.cc",
"src/cpp/client/client_callback.cc",
"src/cpp/client/client_context.cc",
"src/cpp/client/client_interceptor.cc",
"src/cpp/client/client_stats_interceptor.cc",
"src/cpp/client/create_channel.cc",
"src/cpp/client/create_channel_internal.cc",
"src/cpp/client/create_channel_posix.cc",
"src/cpp/common/alarm.cc",
"src/cpp/common/channel_arguments.cc",
"src/cpp/common/channel_filter.cc",
"src/cpp/common/completion_queue_cc.cc",
"src/cpp/common/resource_quota_cc.cc",
"src/cpp/common/rpc_method.cc",
"src/cpp/common/version_cc.cc",
"src/cpp/common/validate_service_config.cc",
"src/cpp/server/async_generic_service.cc",
"src/cpp/server/channel_argument_option.cc",
"src/cpp/server/create_default_thread_pool.cc",
"src/cpp/server/external_connection_acceptor_impl.cc",
"src/cpp/server/health/default_health_check_service.cc",
"src/cpp/server/health/health_check_service.cc",
"src/cpp/server/health/health_check_service_server_builder_option.cc",
"src/cpp/server/server_builder.cc",
"src/cpp/server/server_callback.cc",
"src/cpp/server/server_cc.cc",
"src/cpp/server/server_context.cc",
"src/cpp/server/server_posix.cc",
"src/cpp/thread_manager/thread_manager.cc",
"src/cpp/util/byte_buffer_cc.cc",
"src/cpp/util/string_ref.cc",
"src/cpp/util/time_cc.cc",
]
GRPCXX_HDRS = [
"src/cpp/client/create_channel_internal.h",
"src/cpp/client/client_stats_interceptor.h",
"src/cpp/common/channel_filter.h",
"src/cpp/server/dynamic_thread_pool.h",
"src/cpp/server/external_connection_acceptor_impl.h",
"src/cpp/server/health/default_health_check_service.h",
"src/cpp/server/thread_pool_interface.h",
"src/cpp/thread_manager/thread_manager.h",
]
GRPCXX_PUBLIC_HDRS = [
"include/grpc++/alarm.h",
"include/grpc++/channel.h",
"include/grpc++/client_context.h",
"include/grpc++/completion_queue.h",
"include/grpc++/create_channel.h",
"include/grpc++/create_channel_posix.h",
"include/grpc++/ext/health_check_service_server_builder_option.h",
"include/grpc++/generic/async_generic_service.h",
"include/grpc++/generic/generic_stub.h",
"include/grpc++/grpc++.h",
"include/grpc++/health_check_service_interface.h",
"include/grpc++/impl/call.h",
"include/grpc++/impl/channel_argument_option.h",
"include/grpc++/impl/client_unary_call.h",
"include/grpc++/impl/grpc_library.h",
"include/grpc++/impl/method_handler_impl.h",
"include/grpc++/impl/rpc_method.h",
"include/grpc++/impl/rpc_service_method.h",
"include/grpc++/impl/serialization_traits.h",
"include/grpc++/impl/server_builder_option.h",
"include/grpc++/impl/server_builder_plugin.h",
"include/grpc++/impl/server_initializer.h",
"include/grpc++/impl/service_type.h",
"include/grpc++/security/auth_context.h",
"include/grpc++/resource_quota.h",
"include/grpc++/security/auth_metadata_processor.h",
"include/grpc++/security/credentials.h",
"include/grpc++/security/server_credentials.h",
"include/grpc++/server.h",
"include/grpc++/server_builder.h",
"include/grpc++/server_context.h",
"include/grpc++/server_posix.h",
"include/grpc++/support/async_stream.h",
"include/grpc++/support/async_unary_call.h",
"include/grpc++/support/byte_buffer.h",
"include/grpc++/support/channel_arguments.h",
"include/grpc++/support/config.h",
"include/grpc++/support/slice.h",
"include/grpc++/support/status.h",
"include/grpc++/support/status_code_enum.h",
"include/grpc++/support/string_ref.h",
"include/grpc++/support/stub_options.h",
"include/grpc++/support/sync_stream.h",
"include/grpc++/support/time.h",
"include/grpcpp/alarm.h",
"include/grpcpp/channel.h",
"include/grpcpp/client_context.h",
"include/grpcpp/completion_queue.h",
"include/grpcpp/create_channel.h",
"include/grpcpp/create_channel_posix.h",
"include/grpcpp/ext/health_check_service_server_builder_option.h",
"include/grpcpp/generic/async_generic_service.h",
"include/grpcpp/generic/generic_stub.h",
"include/grpcpp/grpcpp.h",
"include/grpcpp/health_check_service_interface.h",
"include/grpcpp/impl/call_hook.h",
"include/grpcpp/impl/call_op_set_interface.h",
"include/grpcpp/impl/call_op_set.h",
"include/grpcpp/impl/call.h",
"include/grpcpp/impl/channel_argument_option.h",
"include/grpcpp/impl/channel_interface.h",
"include/grpcpp/impl/client_unary_call.h",
"include/grpcpp/impl/completion_queue_tag.h",
"include/grpcpp/impl/create_auth_context.h",
"include/grpcpp/impl/delegating_channel.h",
"include/grpcpp/impl/grpc_library.h",
"include/grpcpp/impl/intercepted_channel.h",
"include/grpcpp/impl/interceptor_common.h",
"include/grpcpp/impl/metadata_map.h",
"include/grpcpp/impl/method_handler_impl.h",
"include/grpcpp/impl/rpc_method.h",
"include/grpcpp/impl/rpc_service_method.h",
"include/grpcpp/impl/serialization_traits.h",
"include/grpcpp/impl/server_builder_option.h",
"include/grpcpp/impl/server_builder_plugin.h",
"include/grpcpp/impl/server_callback_handlers.h",
"include/grpcpp/impl/server_initializer.h",
"include/grpcpp/impl/service_type.h",
"include/grpcpp/impl/status.h",
"include/grpcpp/impl/sync.h",
"include/grpcpp/resource_quota.h",
"include/grpcpp/security/auth_context.h",
"include/grpcpp/security/auth_metadata_processor.h",
"include/grpcpp/security/credentials.h",
"include/grpcpp/security/server_credentials.h",
"include/grpcpp/security/tls_certificate_provider.h",
"include/grpcpp/security/authorization_policy_provider.h",
"include/grpcpp/security/tls_certificate_verifier.h",
"include/grpcpp/security/tls_credentials_options.h",
"include/grpcpp/server.h",
"include/grpcpp/server_builder.h",
"include/grpcpp/server_context.h",
"include/grpcpp/server_interface.h",
"include/grpcpp/server_posix.h",
"include/grpcpp/version_info.h",
"include/grpcpp/support/async_stream.h",
"include/grpcpp/support/async_unary_call.h",
"include/grpcpp/support/byte_buffer.h",
"include/grpcpp/support/callback_common.h",
"include/grpcpp/support/channel_arguments.h",
"include/grpcpp/support/client_callback.h",
"include/grpcpp/support/client_interceptor.h",
"include/grpcpp/support/config.h",
"include/grpcpp/support/interceptor.h",
6 years ago
"include/grpcpp/support/message_allocator.h",
"include/grpcpp/support/method_handler.h",
"include/grpcpp/support/proto_buffer_reader.h",
"include/grpcpp/support/proto_buffer_writer.h",
"include/grpcpp/support/server_callback.h",
"include/grpcpp/support/server_interceptor.h",
"include/grpcpp/support/slice.h",
"include/grpcpp/support/status.h",
"include/grpcpp/support/status_code_enum.h",
"include/grpcpp/support/string_ref.h",
"include/grpcpp/support/stub_options.h",
"include/grpcpp/support/sync_stream.h",
"include/grpcpp/support/time.h",
"include/grpcpp/support/validate_service_config.h",
"include/grpc++/impl/codegen/async_stream.h",
"include/grpc++/impl/codegen/async_unary_call.h",
"include/grpc++/impl/codegen/byte_buffer.h",
"include/grpc++/impl/codegen/call_hook.h",
"include/grpc++/impl/codegen/call.h",
"include/grpc++/impl/codegen/channel_interface.h",
"include/grpc++/impl/codegen/client_context.h",
"include/grpc++/impl/codegen/client_unary_call.h",
"include/grpc++/impl/codegen/completion_queue_tag.h",
"include/grpc++/impl/codegen/completion_queue.h",
"include/grpc++/impl/codegen/config.h",
"include/grpc++/impl/codegen/create_auth_context.h",
"include/grpc++/impl/codegen/metadata_map.h",
"include/grpc++/impl/codegen/method_handler_impl.h",
"include/grpc++/impl/codegen/rpc_method.h",
"include/grpc++/impl/codegen/rpc_service_method.h",
"include/grpc++/impl/codegen/security/auth_context.h",
"include/grpc++/impl/codegen/serialization_traits.h",
"include/grpc++/impl/codegen/server_context.h",
"include/grpc++/impl/codegen/server_interface.h",
"include/grpc++/impl/codegen/service_type.h",
"include/grpc++/impl/codegen/slice.h",
"include/grpc++/impl/codegen/status_code_enum.h",
"include/grpc++/impl/codegen/status.h",
"include/grpc++/impl/codegen/string_ref.h",
"include/grpc++/impl/codegen/stub_options.h",
"include/grpc++/impl/codegen/sync_stream.h",
"include/grpc++/impl/codegen/time.h",
"include/grpcpp/impl/codegen/async_generic_service.h",
"include/grpcpp/impl/codegen/async_stream.h",
"include/grpcpp/impl/codegen/async_unary_call.h",
"include/grpcpp/impl/codegen/byte_buffer.h",
"include/grpcpp/impl/codegen/call_hook.h",
"include/grpcpp/impl/codegen/call_op_set_interface.h",
"include/grpcpp/impl/codegen/call_op_set.h",
"include/grpcpp/impl/codegen/call.h",
"include/grpcpp/impl/codegen/callback_common.h",
"include/grpcpp/impl/codegen/channel_interface.h",
"include/grpcpp/impl/codegen/client_callback.h",
"include/grpcpp/impl/codegen/client_context.h",
"include/grpcpp/impl/codegen/client_interceptor.h",
"include/grpcpp/impl/codegen/client_unary_call.h",
"include/grpcpp/impl/codegen/completion_queue_tag.h",
"include/grpcpp/impl/codegen/completion_queue.h",
"include/grpcpp/impl/codegen/config.h",
"include/grpcpp/impl/codegen/create_auth_context.h",
"include/grpcpp/impl/codegen/delegating_channel.h",
"include/grpcpp/impl/codegen/intercepted_channel.h",
"include/grpcpp/impl/codegen/interceptor_common.h",
"include/grpcpp/impl/codegen/interceptor.h",
"include/grpcpp/impl/codegen/message_allocator.h",
"include/grpcpp/impl/codegen/metadata_map.h",
"include/grpcpp/impl/codegen/method_handler_impl.h",
"include/grpcpp/impl/codegen/method_handler.h",
"include/grpcpp/impl/codegen/rpc_method.h",
"include/grpcpp/impl/codegen/rpc_service_method.h",
"include/grpcpp/impl/codegen/security/auth_context.h",
"include/grpcpp/impl/codegen/serialization_traits.h",
"include/grpcpp/impl/codegen/server_callback_handlers.h",
"include/grpcpp/impl/codegen/server_callback.h",
"include/grpcpp/impl/codegen/server_context.h",
"include/grpcpp/impl/codegen/server_interceptor.h",
"include/grpcpp/impl/codegen/server_interface.h",
"include/grpcpp/impl/codegen/service_type.h",
"include/grpcpp/impl/codegen/slice.h",
"include/grpcpp/impl/codegen/status_code_enum.h",
"include/grpcpp/impl/codegen/status.h",
"include/grpcpp/impl/codegen/string_ref.h",
"include/grpcpp/impl/codegen/stub_options.h",
"include/grpcpp/impl/codegen/sync_stream.h",
"include/grpcpp/impl/codegen/time.h",
"include/grpcpp/impl/codegen/sync.h",
]
grpc_cc_library(
name = "grpc_unsecure",
8 years ago
srcs = [
"//src/core:lib/surface/init.cc",
"//src/core:plugin_registry/grpc_plugin_registry.cc",
"//src/core:plugin_registry/grpc_plugin_registry_noextra.cc",
8 years ago
],
defines = ["GRPC_NO_XDS"],
external_deps = [
"absl/base:core_headers",
],
language = "c++",
8 years ago
public_hdrs = GRPC_PUBLIC_HDRS,
tags = [
"nofixdeps",
],
visibility = ["@grpc:public"],
8 years ago
deps = [
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_client_channel",
"grpc_common",
"grpc_http_filters",
"grpc_security_base",
"grpc_trace",
"http_connect_handshaker",
"iomgr_timer",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:default_event_engine",
"//src/core:experiments",
"//src/core:forkable",
"//src/core:grpc_authorization_base",
"//src/core:init_internally",
"//src/core:posix_event_engine_timer_manager",
"//src/core:slice",
"//src/core:tcp_connect_handshaker",
8 years ago
],
)
GRPC_XDS_TARGETS = [
"//src/core:grpc_lb_policy_cds",
"//src/core:grpc_lb_policy_xds_cluster_impl",
"//src/core:grpc_lb_policy_xds_cluster_manager",
"//src/core:grpc_lb_policy_xds_cluster_resolver",
"//src/core:grpc_lb_policy_xds_override_host",
"//src/core:grpc_lb_policy_xds_wrr_locality",
"//src/core:grpc_resolver_xds",
"//src/core:grpc_resolver_c2p",
"//src/core:grpc_xds_server_config_fetcher",
"//src/core:grpc_stateful_session_filter",
# Not xDS-specific but currently only used by xDS.
"//src/core:channel_creds_registry_init",
]
grpc_cc_library(
name = "grpc",
srcs = [
"//src/core:lib/surface/init.cc",
"//src/core:plugin_registry/grpc_plugin_registry.cc",
"//src/core:plugin_registry/grpc_plugin_registry_extra.cc",
],
defines = select({
":grpc_no_xds": ["GRPC_NO_XDS"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
],
language = "c++",
public_hdrs = GRPC_PUBLIC_HDRS,
select_deps = [
{
":grpc_no_xds": [],
"//conditions:default": GRPC_XDS_TARGETS,
},
],
tags = [
"nofixdeps",
],
visibility = [
"@grpc:public",
],
8 years ago
deps = [
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc_alts_credentials",
"grpc_base",
"grpc_client_channel",
"grpc_common",
"grpc_credentials_util",
"grpc_http_filters",
"grpc_jwt_credentials",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_trace",
"http_connect_handshaker",
"httpcli",
"iomgr_timer",
"promise",
"ref_counted_ptr",
"sockaddr_utils",
"tsi_base",
"uri_parser",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:default_event_engine",
"//src/core:experiments",
"//src/core:forkable",
"//src/core:grpc_authorization_base",
"//src/core:grpc_external_account_credentials",
"//src/core:grpc_fake_credentials",
"//src/core:grpc_google_default_credentials",
"//src/core:grpc_iam_credentials",
"//src/core:grpc_insecure_credentials",
"//src/core:grpc_local_credentials",
"//src/core:grpc_oauth2_credentials",
"//src/core:grpc_ssl_credentials",
"//src/core:grpc_tls_credentials",
"//src/core:grpc_transport_chttp2_alpn",
"//src/core:httpcli_ssl_credentials",
"//src/core:init_internally",
"//src/core:json",
"//src/core:posix_event_engine_timer_manager",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:tcp_connect_handshaker",
"//src/core:useful",
],
)
grpc_cc_library(
name = "gpr",
srcs = [
"//src/core:lib/gpr/alloc.cc",
"//src/core:lib/gpr/android/log.cc",
"//src/core:lib/gpr/iphone/cpu.cc",
"//src/core:lib/gpr/linux/cpu.cc",
"//src/core:lib/gpr/linux/log.cc",
"//src/core:lib/gpr/log.cc",
"//src/core:lib/gpr/msys/tmpfile.cc",
"//src/core:lib/gpr/posix/cpu.cc",
"//src/core:lib/gpr/posix/log.cc",
"//src/core:lib/gpr/posix/string.cc",
"//src/core:lib/gpr/posix/sync.cc",
"//src/core:lib/gpr/posix/time.cc",
"//src/core:lib/gpr/posix/tmpfile.cc",
"//src/core:lib/gpr/string.cc",
"//src/core:lib/gpr/sync.cc",
"//src/core:lib/gpr/sync_abseil.cc",
"//src/core:lib/gpr/time.cc",
"//src/core:lib/gpr/time_precise.cc",
"//src/core:lib/gpr/windows/cpu.cc",
"//src/core:lib/gpr/windows/log.cc",
"//src/core:lib/gpr/windows/string.cc",
"//src/core:lib/gpr/windows/string_util.cc",
"//src/core:lib/gpr/windows/sync.cc",
"//src/core:lib/gpr/windows/time.cc",
"//src/core:lib/gpr/windows/tmpfile.cc",
"//src/core:lib/gpr/wrap_memcpy.cc",
"//src/core:lib/gprpp/crash.cc",
"//src/core:lib/gprpp/fork.cc",
"//src/core:lib/gprpp/global_config_env.cc",
"//src/core:lib/gprpp/host_port.cc",
"//src/core:lib/gprpp/mpscq.cc",
"//src/core:lib/gprpp/posix/stat.cc",
"//src/core:lib/gprpp/posix/thd.cc",
"//src/core:lib/gprpp/time_util.cc",
"//src/core:lib/gprpp/windows/stat.cc",
"//src/core:lib/gprpp/windows/thd.cc",
],
hdrs = [
"//src/core:lib/gpr/alloc.h",
"//src/core:lib/gpr/string.h",
"//src/core:lib/gpr/time_precise.h",
"//src/core:lib/gpr/tmpfile.h",
"//src/core:lib/gprpp/crash.h",
"//src/core:lib/gprpp/fork.h",
"//src/core:lib/gprpp/global_config.h",
"//src/core:lib/gprpp/global_config_custom.h",
"//src/core:lib/gprpp/global_config_env.h",
"//src/core:lib/gprpp/global_config_generic.h",
"//src/core:lib/gprpp/host_port.h",
"//src/core:lib/gprpp/memory.h",
"//src/core:lib/gprpp/mpscq.h",
"//src/core:lib/gprpp/stat.h",
"//src/core:lib/gprpp/sync.h",
"//src/core:lib/gprpp/thd.h",
"//src/core:lib/gprpp/time_util.h",
],
external_deps = [
"absl/base",
"absl/base:core_headers",
"absl/memory",
"absl/random",
"absl/status",
"absl/strings",
"absl/strings:cord",
"absl/strings:str_format",
"absl/synchronization",
"absl/time:time",
"absl/types:optional",
],
language = "c++",
public_hdrs = GPR_PUBLIC_HDRS,
tags = [
"nofixdeps",
],
visibility = ["@grpc:public"],
deps = [
"debug_location",
"//src/core:construct_destruct",
"//src/core:env",
"//src/core:event_engine_thread_local",
"//src/core:examine_stack",
"//src/core:gpr_atm",
"//src/core:no_destruct",
"//src/core:strerror",
"//src/core:tchar",
"//src/core:useful",
],
)
grpc_cc_library(
name = "gpr_public_hdrs",
hdrs = GPR_PUBLIC_HDRS,
tags = [
"avoid_dep",
"nofixdeps",
],
)
grpc_cc_library(
name = "cpp_impl_of",
hdrs = ["//src/core:lib/gprpp/cpp_impl_of.h"],
language = "c++",
)
grpc_cc_library(
name = "grpc_common",
defines = select({
"grpc_no_rls": ["GRPC_NO_RLS"],
"//conditions:default": [],
}),
language = "c++",
select_deps = [
{
"grpc_no_rls": [],
"//conditions:default": ["//src/core:grpc_lb_policy_rls"],
},
],
tags = ["nofixdeps"],
deps = [
"grpc_base",
# standard plugins
"census",
"//src/core:grpc_backend_metric_filter",
"//src/core:grpc_deadline_filter",
"//src/core:grpc_client_authority_filter",
"//src/core:grpc_lb_policy_grpclb",
"//src/core:grpc_lb_policy_outlier_detection",
"//src/core:grpc_lb_policy_pick_first",
"//src/core:grpc_lb_policy_priority",
"//src/core:grpc_lb_policy_ring_hash",
"//src/core:grpc_lb_policy_round_robin",
WRR: implement WRR LB policy (#31904) * WRR: port StaticStrideScheduler to OSS * WIP * Automated change: Fix sanity tests * fix build * remove unused aliases * fix another type mismatch * remove unnecessary include * move benchmarks to their own file, and don't run it on windows * Automated change: Fix sanity tests * add OOB reporting * generate_projects * clang-format * add config parser test * clang-tidy and minimize lock contention * add config defaults * add oob_reporting_period config field and add basic test * Automated change: Fix sanity tests * fix test * change test to use basic RR * WIP: started exposing peer address to LB policy API * first WRR test passing! * small cleanup * port RR fix to WRR * test helper refactoring * more test helper refactoring * WIP: trying to fix test to have the right weights * more WIP -- need to make pickers DualRefCounted * fix timer ref handling and get tests working * clang-format * iwyu and generate_projects * fix build * add test for OOB reporting * keep only READY subchannels in the picker * add file missed in a previous commit * fix sanity * iwyu * add weight expiration period * add tests for weight update period and OOB reporting period * Automated change: Fix sanity tests * lower bound for timer interval * consistently apply grpc_test_slowdown_factor() * cache time in test * add blackout_period tests * avoid some unnecessary copies * clang-format * add field to config test * simplify orca watcher tracking * attempt to fix build * iwyu * generate_projects * add "_experimental" suffix to policy name * WRR: update tests to cover qps plumbing * WIP * more WIP * basic WRR e2e test working * add OOB test * fix sanity * ignore duplicate addresses * Automated change: Fix sanity tests * add new tracer to doc/environment_variables.md * retain scheduler state across pickers * Automated change: Fix sanity tests * use separate mutexes for scheduler and timer * sort addresses to avoid index churn * remove fetch_sub for wrap around in RR case Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"//src/core:grpc_lb_policy_weighted_round_robin",
"//src/core:grpc_lb_policy_weighted_target",
"//src/core:grpc_channel_idle_filter",
"//src/core:grpc_message_size_filter",
"//src/core:grpc_resolver_binder",
"grpc_resolver_dns_ares",
"grpc_resolver_fake",
"//src/core:grpc_resolver_dns_native",
"//src/core:grpc_resolver_sockaddr",
"//src/core:grpc_transport_chttp2_client_connector",
"//src/core:grpc_transport_chttp2_server",
"//src/core:grpc_transport_inproc",
"//src/core:grpc_fault_injection_filter",
],
)
grpc_cc_library(
name = "grpc_public_hdrs",
hdrs = GRPC_PUBLIC_HDRS,
tags = [
"avoid_dep",
"nofixdeps",
],
deps = ["gpr_public_hdrs"],
)
grpc_cc_library(
name = "grpc++_public_hdrs",
hdrs = GRPCXX_PUBLIC_HDRS,
external_deps = [
"absl/synchronization",
"protobuf_headers",
],
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:public"],
deps = [
"grpc_public_hdrs",
"//src/core:gpr_atm",
],
)
grpc_cc_library(
8 years ago
name = "grpc++",
hdrs = [
"src/cpp/client/secure_credentials.h",
"src/cpp/common/secure_auth_context.h",
"src/cpp/server/secure_server_credentials.h",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
select_deps = [
{
":grpc_no_xds": [],
"//conditions:default": [
"grpc++_xds_client",
"grpc++_xds_server",
],
},
{
"grpc_no_binder": [],
"//conditions:default": [
"grpc++_binder",
],
},
],
tags = ["nofixdeps"],
visibility = [
"@grpc:public",
],
deps = [
"grpc++_base",
"//src/core:gpr_atm",
"//src/core:slice",
],
)
grpc_cc_library(
name = "grpc_cronet_hdrs",
hdrs = [
"include/grpc/grpc_cronet.h",
],
deps = [
"gpr_public_hdrs",
"grpc_base",
],
)
grpc_cc_library(
name = "grpc++_cronet_credentials",
srcs = [
"src/cpp/client/cronet_credentials.cc",
],
hdrs = [
"include/grpcpp/security/cronet_credentials.h",
],
language = "c++",
deps = [
"grpc++_base",
"grpc_cronet_hdrs",
"grpc_public_hdrs",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc_authorization_provider",
srcs = [
"//src/core:lib/security/authorization/grpc_authorization_policy_provider.cc",
"//src/core:lib/security/authorization/rbac_translator.cc",
],
hdrs = [
"//src/core:lib/security/authorization/grpc_authorization_policy_provider.h",
"//src/core:lib/security/authorization/rbac_translator.h",
],
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
deps = [
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"ref_counted_ptr",
"//src/core:error",
"//src/core:grpc_authorization_base",
"//src/core:grpc_matchers",
"//src/core:grpc_rbac_engine",
"//src/core:json",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:useful",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc++_authorization_provider",
srcs = [
"src/cpp/server/authorization_policy_provider.cc",
],
hdrs = [
"include/grpcpp/security/authorization_policy_provider.h",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"grpc++",
"grpc++_public_hdrs",
"grpc_authorization_provider",
"grpc_public_hdrs",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc_cel_engine",
srcs = [
"//src/core:lib/security/authorization/cel_authorization_engine.cc",
],
hdrs = [
"//src/core:lib/security/authorization/cel_authorization_engine.h",
],
external_deps = [
"absl/container:flat_hash_set",
"absl/strings",
"absl/types:optional",
"absl/types:span",
"upb_lib",
],
language = "c++",
deps = [
"envoy_config_rbac_upb",
"google_type_expr_upb",
"gpr",
"grpc_mock_cel",
"//src/core:grpc_authorization_base",
],
)
grpc_cc_library(
name = "grpc++_binder",
srcs = [
"//src/core:ext/transport/binder/client/binder_connector.cc",
"//src/core:ext/transport/binder/client/channel_create.cc",
"//src/core:ext/transport/binder/client/channel_create_impl.cc",
"//src/core:ext/transport/binder/client/connection_id_generator.cc",
"//src/core:ext/transport/binder/client/endpoint_binder_pool.cc",
"//src/core:ext/transport/binder/client/jni_utils.cc",
"//src/core:ext/transport/binder/client/security_policy_setting.cc",
"//src/core:ext/transport/binder/security_policy/binder_security_policy.cc",
"//src/core:ext/transport/binder/server/binder_server.cc",
"//src/core:ext/transport/binder/server/binder_server_credentials.cc",
"//src/core:ext/transport/binder/transport/binder_transport.cc",
"//src/core:ext/transport/binder/utils/ndk_binder.cc",
"//src/core:ext/transport/binder/utils/transport_stream_receiver_impl.cc",
"//src/core:ext/transport/binder/wire_format/binder_android.cc",
"//src/core:ext/transport/binder/wire_format/binder_constants.cc",
"//src/core:ext/transport/binder/wire_format/transaction.cc",
"//src/core:ext/transport/binder/wire_format/wire_reader_impl.cc",
"//src/core:ext/transport/binder/wire_format/wire_writer.cc",
],
hdrs = [
"//src/core:ext/transport/binder/client/binder_connector.h",
"//src/core:ext/transport/binder/client/channel_create_impl.h",
"//src/core:ext/transport/binder/client/connection_id_generator.h",
"//src/core:ext/transport/binder/client/endpoint_binder_pool.h",
"//src/core:ext/transport/binder/client/jni_utils.h",
"//src/core:ext/transport/binder/client/security_policy_setting.h",
"//src/core:ext/transport/binder/server/binder_server.h",
"//src/core:ext/transport/binder/transport/binder_stream.h",
"//src/core:ext/transport/binder/transport/binder_transport.h",
"//src/core:ext/transport/binder/utils/binder_auto_utils.h",
"//src/core:ext/transport/binder/utils/ndk_binder.h",
"//src/core:ext/transport/binder/utils/transport_stream_receiver.h",
"//src/core:ext/transport/binder/utils/transport_stream_receiver_impl.h",
"//src/core:ext/transport/binder/wire_format/binder.h",
"//src/core:ext/transport/binder/wire_format/binder_android.h",
"//src/core:ext/transport/binder/wire_format/binder_constants.h",
"//src/core:ext/transport/binder/wire_format/transaction.h",
"//src/core:ext/transport/binder/wire_format/wire_reader.h",
"//src/core:ext/transport/binder/wire_format/wire_reader_impl.h",
"//src/core:ext/transport/binder/wire_format/wire_writer.h",
],
defines = select({
"grpc_no_binder": ["GRPC_NO_BINDER"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/container:flat_hash_map",
"absl/functional:any_invocable",
"absl/hash",
"absl/memory",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/synchronization",
"absl/time",
"absl/types:variant",
],
language = "c++",
public_hdrs = [
"include/grpcpp/security/binder_security_policy.h",
"include/grpcpp/create_channel_binder.h",
"include/grpcpp/security/binder_credentials.h",
],
tags = ["nofixdeps"],
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"gpr_platform",
"grpc",
"grpc++_base",
"grpc_base",
"grpc_client_channel",
"grpc_public_hdrs",
"orphanable",
"ref_counted_ptr",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:channel_stack_type",
"//src/core:default_event_engine",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:transport_fwd",
],
)
grpc_cc_library(
name = "grpc++_xds_client",
srcs = [
"src/cpp/client/xds_credentials.cc",
],
hdrs = [
"src/cpp/client/secure_credentials.h",
],
external_deps = ["absl/strings"],
language = "c++",
deps = [
"exec_ctx",
"gpr",
"grpc",
"grpc++_base",
"grpc_base",
"grpc_public_hdrs",
"grpc_security_base",
],
)
grpc_cc_library(
name = "grpc++_xds_server",
srcs = [
"src/cpp/server/xds_server_credentials.cc",
],
hdrs = [
"src/cpp/server/secure_server_credentials.h",
],
language = "c++",
public_hdrs = [
"include/grpcpp/xds_server_builder.h",
],
visibility = ["@grpc:xds"],
deps = [
"gpr",
"grpc",
"grpc++_base",
],
)
grpc_cc_library(
8 years ago
name = "grpc++_unsecure",
srcs = [
"src/cpp/client/insecure_credentials.cc",
"src/cpp/common/insecure_create_auth_context.cc",
"src/cpp/server/insecure_server_credentials.cc",
],
language = "c++",
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:public"],
8 years ago
deps = [
"gpr",
"grpc++_base_unsecure",
"grpc++_codegen_proto",
"grpc_public_hdrs",
8 years ago
"grpc_unsecure",
"//src/core:grpc_insecure_credentials",
8 years ago
],
)
grpc_cc_library(
name = "grpc++_error_details",
srcs = [
"src/cpp/util/error_details.cc",
],
hdrs = [
"include/grpc++/support/error_details.h",
"include/grpcpp/support/error_details.h",
],
language = "c++",
standalone = True,
visibility = ["@grpc:public"],
deps = ["grpc++"],
)
grpc_cc_library(
name = "grpc++_alts",
srcs = [
"src/cpp/common/alts_context.cc",
"src/cpp/common/alts_util.cc",
],
hdrs = [
"include/grpcpp/security/alts_context.h",
"include/grpcpp/security/alts_util.h",
],
external_deps = ["upb_lib"],
language = "c++",
standalone = True,
visibility = ["@grpc:tsi"],
deps = [
"alts_upb",
"gpr",
"grpc++",
"grpc_base",
"tsi_alts_credentials",
],
)
grpc_cc_library(
8 years ago
name = "census",
srcs = [
"//src/core:ext/filters/census/grpc_context.cc",
8 years ago
],
language = "c++",
8 years ago
public_hdrs = [
"include/grpc/census.h",
],
visibility = ["@grpc:public"],
8 years ago
deps = [
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
8 years ago
],
)
# A library that vends only port_platform, so that libraries that don't need
# anything else from gpr can still be portable!
grpc_cc_library(
name = "gpr_platform",
language = "c++",
public_hdrs = [
"include/grpc/impl/codegen/port_platform.h",
"include/grpc/support/port_platform.h",
],
)
grpc_cc_library(
name = "event_engine_base_hdrs",
hdrs = GRPC_PUBLIC_EVENT_ENGINE_HDRS + GRPC_PUBLIC_HDRS,
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/time",
"absl/types:optional",
"absl/functional:any_invocable",
],
tags = [
"nofixdeps",
],
deps = [
"gpr",
],
)
grpc_cc_library(
name = "grpc_base",
srcs = [
"//src/core:lib/channel/channel_stack.cc",
"//src/core:lib/channel/channel_stack_builder_impl.cc",
"//src/core:lib/channel/channel_trace.cc",
"//src/core:lib/channel/channelz.cc",
"//src/core:lib/channel/channelz_registry.cc",
"//src/core:lib/channel/connected_channel.cc",
OpenCensus: Use new CallTracer interfaces (#32618) This change mostly aims to get OpenCensus to use the new ServerCallTracer interface. Note that the interfaces nor the code are in their final states. There are a bunch of moving pieces, but I thought this might be a nice mid-step to check-in and make sure that our internal traces can also work with these changes. Overall changes - 1) call_tracer.h shows what the hierarchy of new call tracer interfaces looks like. Open to renaming suggestions. 2) Moved most of the common interface between `CallAttemptTracer` and `ServerCallTracer` into a common `CallTracerInterface`. We should be able to eventually move `RecordReceivedTrailingMetadata` and `RecordEnd` as well to these common interfaces, but it requires some additional work. 3) The compression filter is now responsible for recording the recv and send messages for both the subchannel call and the server, and adds in ability to record compressed and decompressed messages as well. 4) The OpenCensus server filter now uses the new `ServerCallTracer` interface, and so doesn't need to be a filter anymore. 5) A new ServerCallTracerFilter was added. Ideally, we should be able to move it to the current connected filter, but it is in a bit of an interesting state right now, so I would prefer making those changes in a separate PR with Craig's eyes on it. 6) A new context element `GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE` was created that replaces the old `GRPC_CONTEXT_CALL_TRACER`, and the new `GRPC_CONTEXT_CALL_TRACER` is mainly to pass the `CallAttemptTracer` down the stack. This should go away in the new promise-based world. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/grpc/grpc/32618) <!-- Reviewable:end -->
2 years ago
"//src/core:lib/channel/server_call_tracer_filter.cc",
"//src/core:lib/channel/promise_based_filter.cc",
OpenCensus: Use new CallTracer interfaces (#32618) This change mostly aims to get OpenCensus to use the new ServerCallTracer interface. Note that the interfaces nor the code are in their final states. There are a bunch of moving pieces, but I thought this might be a nice mid-step to check-in and make sure that our internal traces can also work with these changes. Overall changes - 1) call_tracer.h shows what the hierarchy of new call tracer interfaces looks like. Open to renaming suggestions. 2) Moved most of the common interface between `CallAttemptTracer` and `ServerCallTracer` into a common `CallTracerInterface`. We should be able to eventually move `RecordReceivedTrailingMetadata` and `RecordEnd` as well to these common interfaces, but it requires some additional work. 3) The compression filter is now responsible for recording the recv and send messages for both the subchannel call and the server, and adds in ability to record compressed and decompressed messages as well. 4) The OpenCensus server filter now uses the new `ServerCallTracer` interface, and so doesn't need to be a filter anymore. 5) A new ServerCallTracerFilter was added. Ideally, we should be able to move it to the current connected filter, but it is in a bit of an interesting state right now, so I would prefer making those changes in a separate PR with Craig's eyes on it. 6) A new context element `GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE` was created that replaces the old `GRPC_CONTEXT_CALL_TRACER`, and the new `GRPC_CONTEXT_CALL_TRACER` is mainly to pass the `CallAttemptTracer` down the stack. This should go away in the new promise-based world. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/grpc/grpc/32618) <!-- Reviewable:end -->
2 years ago
"//src/core:lib/channel/call_tracer.cc",
"//src/core:lib/channel/status_util.cc",
"//src/core:lib/compression/compression.cc",
"//src/core:lib/compression/compression_internal.cc",
"//src/core:lib/compression/message_compress.cc",
"//src/core:lib/iomgr/buffer_list.cc",
"//src/core:lib/iomgr/call_combiner.cc",
"//src/core:lib/iomgr/cfstream_handle.cc",
"//src/core:lib/iomgr/dualstack_socket_posix.cc",
"//src/core:lib/iomgr/endpoint.cc",
"//src/core:lib/iomgr/endpoint_cfstream.cc",
"//src/core:lib/iomgr/endpoint_pair_posix.cc",
"//src/core:lib/iomgr/endpoint_pair_windows.cc",
"//src/core:lib/iomgr/error_cfstream.cc",
"//src/core:lib/iomgr/ev_apple.cc",
"//src/core:lib/iomgr/ev_epoll1_linux.cc",
"//src/core:lib/iomgr/ev_poll_posix.cc",
"//src/core:lib/iomgr/ev_posix.cc",
"//src/core:lib/iomgr/ev_windows.cc",
"//src/core:lib/iomgr/fork_posix.cc",
"//src/core:lib/iomgr/fork_windows.cc",
"//src/core:lib/iomgr/gethostname_fallback.cc",
"//src/core:lib/iomgr/gethostname_host_name_max.cc",
"//src/core:lib/iomgr/gethostname_sysconf.cc",
"//src/core:lib/iomgr/internal_errqueue.cc",
"//src/core:lib/iomgr/iocp_windows.cc",
"//src/core:lib/iomgr/iomgr.cc",
"//src/core:lib/iomgr/iomgr_posix.cc",
"//src/core:lib/iomgr/iomgr_posix_cfstream.cc",
"//src/core:lib/iomgr/iomgr_windows.cc",
"//src/core:lib/iomgr/load_file.cc",
"//src/core:lib/iomgr/lockfree_event.cc",
"//src/core:lib/iomgr/polling_entity.cc",
"//src/core:lib/iomgr/pollset.cc",
"//src/core:lib/iomgr/pollset_set_windows.cc",
"//src/core:lib/iomgr/pollset_windows.cc",
"//src/core:lib/iomgr/resolve_address.cc",
"//src/core:lib/iomgr/resolve_address_posix.cc",
"//src/core:lib/iomgr/resolve_address_windows.cc",
"//src/core:lib/iomgr/socket_factory_posix.cc",
"//src/core:lib/iomgr/socket_utils_common_posix.cc",
"//src/core:lib/iomgr/socket_utils_linux.cc",
"//src/core:lib/iomgr/socket_utils_posix.cc",
"//src/core:lib/iomgr/socket_windows.cc",
"//src/core:lib/iomgr/systemd_utils.cc",
"//src/core:lib/iomgr/tcp_client.cc",
"//src/core:lib/iomgr/tcp_client_cfstream.cc",
"//src/core:lib/iomgr/tcp_client_posix.cc",
"//src/core:lib/iomgr/tcp_client_windows.cc",
"//src/core:lib/iomgr/tcp_posix.cc",
"//src/core:lib/iomgr/tcp_server.cc",
"//src/core:lib/iomgr/tcp_server_posix.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_common.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_ifaddrs.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_noifaddrs.cc",
"//src/core:lib/iomgr/tcp_server_windows.cc",
"//src/core:lib/iomgr/tcp_windows.cc",
"//src/core:lib/iomgr/unix_sockets_posix.cc",
"//src/core:lib/iomgr/unix_sockets_posix_noop.cc",
"//src/core:lib/iomgr/wakeup_fd_eventfd.cc",
"//src/core:lib/iomgr/wakeup_fd_nospecial.cc",
"//src/core:lib/iomgr/wakeup_fd_pipe.cc",
"//src/core:lib/iomgr/wakeup_fd_posix.cc",
"//src/core:lib/resource_quota/api.cc",
"//src/core:lib/slice/b64.cc",
"//src/core:lib/surface/api_trace.cc",
"//src/core:lib/surface/builtins.cc",
"//src/core:lib/surface/byte_buffer.cc",
"//src/core:lib/surface/byte_buffer_reader.cc",
"//src/core:lib/surface/call.cc",
"//src/core:lib/surface/call_details.cc",
"//src/core:lib/surface/call_log_batch.cc",
"//src/core:lib/surface/call_trace.cc",
"//src/core:lib/surface/channel.cc",
"//src/core:lib/surface/channel_ping.cc",
"//src/core:lib/surface/completion_queue.cc",
"//src/core:lib/surface/completion_queue_factory.cc",
"//src/core:lib/surface/event_string.cc",
"//src/core:lib/surface/lame_client.cc",
"//src/core:lib/surface/metadata_array.cc",
"//src/core:lib/surface/server.cc",
"//src/core:lib/surface/validate_metadata.cc",
"//src/core:lib/surface/version.cc",
"//src/core:lib/transport/connectivity_state.cc",
"//src/core:lib/transport/error_utils.cc",
"//src/core:lib/transport/metadata_batch.cc",
"//src/core:lib/transport/parsed_metadata.cc",
"//src/core:lib/transport/status_conversion.cc",
"//src/core:lib/transport/timeout_encoding.cc",
"//src/core:lib/transport/transport.cc",
"//src/core:lib/transport/transport_op_string.cc",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
] +
# TODO(vigneshbabu): remove these
# These headers used to be vended by this target, but they have to be
# removed after landing EventEngine.
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
[
[EventEngine] Modify iomgr to allow creation of posix event engine listeners and server side endpoints (#31928) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * start * Update tcp server interface to move on_accept_cb to create method * update * start * update * update * update * update * update * update * update * update * sanity * update * update * update * windows build * fix msan * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * regenerate projects * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * fix sanity * update * update * sanity * fix * Fix * Review comments * fix * iwyu * fix build issue Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:lib/iomgr/event_engine_shims/closure.cc",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:lib/iomgr/event_engine_shims/endpoint.cc",
"//src/core:lib/iomgr/event_engine_shims/tcp_client.cc",
],
hdrs = [
"//src/core:lib/channel/call_finalization.h",
"//src/core:lib/channel/call_tracer.h",
"//src/core:lib/channel/channel_stack.h",
"//src/core:lib/channel/channel_stack_builder_impl.h",
"//src/core:lib/channel/channel_trace.h",
"//src/core:lib/channel/channelz.h",
"//src/core:lib/channel/channelz_registry.h",
"//src/core:lib/channel/connected_channel.h",
"//src/core:lib/channel/context.h",
"//src/core:lib/channel/promise_based_filter.h",
"//src/core:lib/channel/status_util.h",
"//src/core:lib/compression/compression_internal.h",
"//src/core:lib/compression/message_compress.h",
"//src/core:lib/iomgr/block_annotate.h",
"//src/core:lib/iomgr/buffer_list.h",
"//src/core:lib/iomgr/call_combiner.h",
"//src/core:lib/iomgr/cfstream_handle.h",
"//src/core:lib/iomgr/dynamic_annotations.h",
"//src/core:lib/iomgr/endpoint.h",
"//src/core:lib/iomgr/endpoint_cfstream.h",
"//src/core:lib/iomgr/endpoint_pair.h",
"//src/core:lib/iomgr/error_cfstream.h",
"//src/core:lib/iomgr/ev_apple.h",
"//src/core:lib/iomgr/ev_epoll1_linux.h",
"//src/core:lib/iomgr/ev_poll_posix.h",
"//src/core:lib/iomgr/ev_posix.h",
"//src/core:lib/iomgr/gethostname.h",
"//src/core:lib/iomgr/internal_errqueue.h",
"//src/core:lib/iomgr/iocp_windows.h",
"//src/core:lib/iomgr/iomgr.h",
"//src/core:lib/iomgr/load_file.h",
"//src/core:lib/iomgr/lockfree_event.h",
"//src/core:lib/iomgr/nameser.h",
"//src/core:lib/iomgr/polling_entity.h",
"//src/core:lib/iomgr/pollset.h",
"//src/core:lib/iomgr/pollset_set_windows.h",
"//src/core:lib/iomgr/pollset_windows.h",
"//src/core:lib/iomgr/python_util.h",
"//src/core:lib/iomgr/resolve_address.h",
"//src/core:lib/iomgr/resolve_address_impl.h",
"//src/core:lib/iomgr/resolve_address_posix.h",
"//src/core:lib/iomgr/resolve_address_windows.h",
"//src/core:lib/iomgr/sockaddr.h",
"//src/core:lib/iomgr/sockaddr_posix.h",
"//src/core:lib/iomgr/sockaddr_windows.h",
"//src/core:lib/iomgr/socket_factory_posix.h",
"//src/core:lib/iomgr/socket_utils_posix.h",
"//src/core:lib/iomgr/socket_windows.h",
"//src/core:lib/iomgr/systemd_utils.h",
"//src/core:lib/iomgr/tcp_client.h",
"//src/core:lib/iomgr/tcp_client_posix.h",
"//src/core:lib/iomgr/tcp_posix.h",
"//src/core:lib/iomgr/tcp_server.h",
"//src/core:lib/iomgr/tcp_server_utils_posix.h",
"//src/core:lib/iomgr/tcp_windows.h",
"//src/core:lib/iomgr/unix_sockets_posix.h",
"//src/core:lib/iomgr/wakeup_fd_pipe.h",
"//src/core:lib/iomgr/wakeup_fd_posix.h",
"//src/core:lib/resource_quota/api.h",
"//src/core:lib/slice/b64.h",
"//src/core:lib/surface/api_trace.h",
"//src/core:lib/surface/builtins.h",
"//src/core:lib/surface/call.h",
"//src/core:lib/surface/call_test_only.h",
"//src/core:lib/surface/call_trace.h",
"//src/core:lib/surface/channel.h",
"//src/core:lib/surface/completion_queue.h",
"//src/core:lib/surface/completion_queue_factory.h",
"//src/core:lib/surface/event_string.h",
"//src/core:lib/surface/init.h",
"//src/core:lib/surface/lame_client.h",
"//src/core:lib/surface/server.h",
"//src/core:lib/surface/validate_metadata.h",
"//src/core:lib/transport/connectivity_state.h",
"//src/core:lib/transport/error_utils.h",
"//src/core:lib/transport/metadata_batch.h",
"//src/core:lib/transport/parsed_metadata.h",
"//src/core:lib/transport/status_conversion.h",
"//src/core:lib/transport/timeout_encoding.h",
"//src/core:lib/transport/transport.h",
"//src/core:lib/transport/transport_impl.h",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
] +
# TODO(vigneshbabu): remove these
# These headers used to be vended by this target, but they have to be
# removed after landing EventEngine.
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
[
[EventEngine] Modify iomgr to allow creation of posix event engine listeners and server side endpoints (#31928) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * start * Update tcp server interface to move on_accept_cb to create method * update * start * update * update * update * update * update * update * update * update * sanity * update * update * update * windows build * fix msan * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * regenerate projects * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * fix sanity * update * update * sanity * fix * Fix * Review comments * fix * iwyu * fix build issue Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:lib/iomgr/event_engine_shims/closure.h",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:lib/iomgr/event_engine_shims/endpoint.h",
"//src/core:lib/iomgr/event_engine_shims/tcp_client.h",
],
defines = select({
"systemd": ["HAVE_LIBSYSTEMD"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/container:flat_hash_map",
"absl/container:inlined_vector",
"absl/functional:any_invocable",
"absl/functional:function_ref",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"absl/types:variant",
"absl/utility",
"madler_zlib",
8 years ago
],
language = "c++",
linkopts = select({
"systemd": ["-lsystemd"],
"//conditions:default": [],
}),
public_hdrs = GRPC_PUBLIC_HDRS + GRPC_PUBLIC_EVENT_ENGINE_HDRS,
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"channel_stack_builder",
"config",
"cpp_impl_of",
"debug_location",
"exec_ctx",
"gpr",
"grpc_public_hdrs",
"grpc_trace",
"iomgr_timer",
"orphanable",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"parse_address",
"promise",
"ref_counted_ptr",
"sockaddr_utils",
"stats",
"uri_parser",
"work_serializer",
"//src/core:activity",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:atomic_utils",
"//src/core:basic_join",
"//src/core:basic_seq",
"//src/core:bitset",
OpenCensus: Use new CallTracer interfaces (#32618) This change mostly aims to get OpenCensus to use the new ServerCallTracer interface. Note that the interfaces nor the code are in their final states. There are a bunch of moving pieces, but I thought this might be a nice mid-step to check-in and make sure that our internal traces can also work with these changes. Overall changes - 1) call_tracer.h shows what the hierarchy of new call tracer interfaces looks like. Open to renaming suggestions. 2) Moved most of the common interface between `CallAttemptTracer` and `ServerCallTracer` into a common `CallTracerInterface`. We should be able to eventually move `RecordReceivedTrailingMetadata` and `RecordEnd` as well to these common interfaces, but it requires some additional work. 3) The compression filter is now responsible for recording the recv and send messages for both the subchannel call and the server, and adds in ability to record compressed and decompressed messages as well. 4) The OpenCensus server filter now uses the new `ServerCallTracer` interface, and so doesn't need to be a filter anymore. 5) A new ServerCallTracerFilter was added. Ideally, we should be able to move it to the current connected filter, but it is in a bit of an interesting state right now, so I would prefer making those changes in a separate PR with Craig's eyes on it. 6) A new context element `GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE` was created that replaces the old `GRPC_CONTEXT_CALL_TRACER`, and the new `GRPC_CONTEXT_CALL_TRACER` is mainly to pass the `CallAttemptTracer` down the stack. This should go away in the new promise-based world. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/grpc/grpc/32618) <!-- Reviewable:end -->
2 years ago
"//src/core:cancel_callback",
"//src/core:channel_args",
"//src/core:channel_args_endpoint_config",
"//src/core:channel_args_preconditioning",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:chunked_vector",
"//src/core:closure",
"//src/core:construct_destruct",
"//src/core:context",
"//src/core:default_event_engine",
"//src/core:dual_ref_counted",
"//src/core:error",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:event_engine_common",
"//src/core:event_engine_memory_allocator_factory",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:event_engine_shim",
"//src/core:event_engine_tcp_socket_utils",
"//src/core:event_engine_trace",
"//src/core:event_log",
"//src/core:experiments",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:gpr_spinlock",
"//src/core:grpc_sockaddr",
"//src/core:http2_errors",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:json",
"//src/core:map",
"//src/core:match",
"//src/core:memory_quota",
"//src/core:no_destruct",
"//src/core:notification",
"//src/core:packed_table",
"//src/core:pipe",
"//src/core:poll",
"//src/core:pollset_set",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"//src/core:posix_event_engine_base_hdrs",
"//src/core:promise_status",
"//src/core:ref_counted",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:resource_quota_trace",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_cast",
"//src/core:slice_refcount",
"//src/core:socket_mutator",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:strerror",
"//src/core:thread_quota",
"//src/core:time",
"//src/core:transport_fwd",
"//src/core:try_join",
"//src/core:try_seq",
"//src/core:useful",
"//src/core:windows_event_engine",
"//src/core:windows_event_engine_listener",
],
)
grpc_cc_library(
name = "lb_load_data_store",
8 years ago
srcs = [
"src/cpp/server/load_reporter/load_data_store.cc",
8 years ago
],
hdrs = [
"src/cpp/server/load_reporter/constants.h",
"src/cpp/server/load_reporter/load_data_store.h",
],
language = "c++",
8 years ago
deps = [
"gpr",
"gpr_platform",
"grpc++",
"//src/core:grpc_sockaddr",
8 years ago
],
)
grpc_cc_library(
name = "lb_server_load_reporting_service_server_builder_plugin",
srcs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.cc",
],
hdrs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.h",
],
language = "c++",
deps = [
"gpr_platform",
"grpc++",
"lb_load_reporter_service",
],
)
5 years ago
grpc_cc_library(
name = "grpcpp_server_load_reporting",
5 years ago
srcs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_option.cc",
"src/cpp/server/load_reporter/util.cc",
],
5 years ago
language = "c++",
public_hdrs = [
"include/grpcpp/ext/server_load_reporting.h",
],
tags = ["nofixdeps"],
deps = [
"gpr",
"gpr_platform",
"grpc",
"grpc++",
"grpc++_public_hdrs",
"grpc_public_hdrs",
"lb_server_load_reporting_service_server_builder_plugin",
"//src/core:lb_server_load_reporting_filter",
],
)
grpc_cc_library(
name = "lb_load_reporter_service",
srcs = [
"src/cpp/server/load_reporter/load_reporter_async_service_impl.cc",
],
hdrs = [
"src/cpp/server/load_reporter/load_reporter_async_service_impl.h",
],
external_deps = [
"absl/memory",
"protobuf_headers",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"grpc++",
"lb_load_reporter",
],
)
grpc_cc_library(
name = "lb_get_cpu_stats",
srcs = [
"src/cpp/server/load_reporter/get_cpu_stats_linux.cc",
"src/cpp/server/load_reporter/get_cpu_stats_macos.cc",
"src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc",
"src/cpp/server/load_reporter/get_cpu_stats_windows.cc",
],
hdrs = [
"src/cpp/server/load_reporter/get_cpu_stats.h",
],
language = "c++",
deps = [
"gpr",
"gpr_platform",
],
)
grpc_cc_library(
name = "lb_load_reporter",
srcs = [
"src/cpp/server/load_reporter/load_reporter.cc",
8 years ago
],
hdrs = [
"src/cpp/server/load_reporter/constants.h",
"src/cpp/server/load_reporter/load_reporter.h",
8 years ago
],
external_deps = [
"opencensus-stats",
"opencensus-tags",
"protobuf_headers",
],
language = "c++",
tags = ["nofixdeps"],
8 years ago
deps = [
"gpr",
"lb_get_cpu_stats",
"lb_load_data_store",
"//src/proto/grpc/lb/v1:load_reporter_proto",
8 years ago
],
)
grpc_cc_library(
name = "grpc_security_base",
srcs = [
"//src/core:lib/security/context/security_context.cc",
"//src/core:lib/security/credentials/call_creds_util.cc",
"//src/core:lib/security/credentials/composite/composite_credentials.cc",
"//src/core:lib/security/credentials/credentials.cc",
"//src/core:lib/security/credentials/plugin/plugin_credentials.cc",
"//src/core:lib/security/security_connector/security_connector.cc",
"//src/core:lib/security/transport/client_auth_filter.cc",
"//src/core:lib/security/transport/secure_endpoint.cc",
"//src/core:lib/security/transport/security_handshaker.cc",
"//src/core:lib/security/transport/server_auth_filter.cc",
"//src/core:lib/security/transport/tsi_error.cc",
],
hdrs = [
"//src/core:lib/security/context/security_context.h",
"//src/core:lib/security/credentials/call_creds_util.h",
"//src/core:lib/security/credentials/composite/composite_credentials.h",
"//src/core:lib/security/credentials/credentials.h",
"//src/core:lib/security/credentials/plugin/plugin_credentials.h",
"//src/core:lib/security/security_connector/security_connector.h",
"//src/core:lib/security/transport/auth_filters.h",
"//src/core:lib/security/transport/secure_endpoint.h",
"//src/core:lib/security/transport/security_handshaker.h",
"//src/core:lib/security/transport/tsi_error.h",
],
external_deps = [
"absl/base:core_headers",
"absl/container:inlined_vector",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
public_hdrs = GRPC_PUBLIC_HDRS,
visibility = ["@grpc:public"],
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"handshaker",
"promise",
"ref_counted_ptr",
"stats",
"tsi_base",
"//src/core:activity",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:basic_seq",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:closure",
"//src/core:context",
"//src/core:error",
"//src/core:event_engine_memory_allocator",
"//src/core:gpr_atm",
"//src/core:handshaker_factory",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:memory_quota",
"//src/core:poll",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:resource_quota_trace",
"//src/core:seq",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:try_seq",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_base",
srcs = [
"//src/core:tsi/transport_security.cc",
"//src/core:tsi/transport_security_grpc.cc",
],
hdrs = [
"//src/core:tsi/transport_security.h",
"//src/core:tsi/transport_security_grpc.h",
"//src/core:tsi/transport_security_interface.h",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:tsi_interface"],
deps = [
"gpr",
"grpc_trace",
],
)
grpc_cc_library(
name = "alts_util",
srcs = [
"//src/core:lib/security/credentials/alts/check_gcp_environment.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_linux.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_no_op.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_windows.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_client_options.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_options.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_server_options.cc",
"//src/core:tsi/alts/handshaker/transport_security_common_api.cc",
],
hdrs = [
"include/grpc/grpc_security.h",
"//src/core:lib/security/credentials/alts/check_gcp_environment.h",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_options.h",
"//src/core:tsi/alts/handshaker/transport_security_common_api.h",
],
external_deps = ["upb_lib"],
language = "c++",
visibility = ["@grpc:tsi"],
deps = [
"alts_upb",
"gpr",
"grpc_public_hdrs",
],
)
grpc_cc_library(
name = "tsi",
external_deps = [
"libssl",
"libcrypto",
"absl/strings",
"upb_lib",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:tsi"],
deps = [
"gpr",
"tsi_alts_frame_protector",
"tsi_base",
"tsi_fake_credentials",
"//src/core:tsi_local_credentials",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc++_base",
srcs = GRPCXX_SRCS + [
"src/cpp/client/insecure_credentials.cc",
"src/cpp/client/secure_credentials.cc",
"src/cpp/common/auth_property_iterator.cc",
"src/cpp/common/secure_auth_context.cc",
"src/cpp/common/secure_channel_arguments.cc",
"src/cpp/common/secure_create_auth_context.cc",
"src/cpp/common/tls_certificate_provider.cc",
"src/cpp/common/tls_certificate_verifier.cc",
"src/cpp/common/tls_credentials_options.cc",
"src/cpp/server/insecure_server_credentials.cc",
"src/cpp/server/secure_server_credentials.cc",
],
hdrs = GRPCXX_HDRS + [
"src/cpp/client/secure_credentials.h",
"src/cpp/common/secure_auth_context.h",
"src/cpp/server/secure_server_credentials.h",
],
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/synchronization",
"absl/memory",
"absl/types:optional",
"upb_lib",
"protobuf_headers",
"absl/container:inlined_vector",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
tags = ["nofixdeps"],
visibility = ["@grpc:alt_grpc++_base_legacy"],
deps = [
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc",
"grpc++_codegen_proto",
"grpc_base",
"grpc_credentials_util",
"grpc_health_upb",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_service_config_impl",
"grpc_trace",
"grpcpp_backend_metric_recorder",
"grpcpp_call_metric_recorder",
"grpcpp_status",
"iomgr_timer",
"ref_counted_ptr",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:default_event_engine",
"//src/core:env",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_backend_metric_provider",
"//src/core:grpc_service_config",
"//src/core:grpc_transport_inproc",
"//src/core:json",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:socket_mutator",
"//src/core:status_helper",
"//src/core:thread_quota",
"//src/core:time",
"//src/core:useful",
],
)
# TODO(chengyuc): Give it another try to merge this to `grpc++_base` after
# codegen files are removed.
grpc_cc_library(
name = "grpc++_base_unsecure",
srcs = GRPCXX_SRCS,
hdrs = GRPCXX_HDRS,
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/synchronization",
"absl/types:optional",
"absl/memory",
"upb_lib",
"absl/strings:str_format",
"protobuf_headers",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:alt_grpc++_base_unsecure_legacy"],
deps = [
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_health_upb",
"grpc_public_hdrs",
"grpc_service_config_impl",
"grpc_trace",
"grpc_unsecure",
"grpcpp_backend_metric_recorder",
"grpcpp_call_metric_recorder",
"grpcpp_status",
"iomgr_timer",
"ref_counted_ptr",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:closure",
"//src/core:default_event_engine",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_backend_metric_provider",
"//src/core:grpc_insecure_credentials",
"//src/core:grpc_service_config",
"//src/core:grpc_transport_inproc",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:socket_mutator",
"//src/core:time",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc++_codegen_proto",
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpc++/impl/codegen/proto_utils.h",
"include/grpcpp/impl/codegen/proto_buffer_reader.h",
"include/grpcpp/impl/codegen/proto_buffer_writer.h",
"include/grpcpp/impl/codegen/proto_utils.h",
"include/grpcpp/impl/proto_utils.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
deps = [
"grpc++_config_proto",
"grpc++_public_hdrs",
"grpcpp_status",
],
)
grpc_cc_library(
name = "grpc++_config_proto",
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpc++/impl/codegen/config_protobuf.h",
"include/grpcpp/impl/codegen/config_protobuf.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
)
grpc_cc_library(
name = "grpc++_reflection",
srcs = [
"src/cpp/ext/proto_server_reflection.cc",
"src/cpp/ext/proto_server_reflection_plugin.cc",
],
hdrs = [
"src/cpp/ext/proto_server_reflection.h",
],
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpc++/ext/proto_server_reflection_plugin.h",
"include/grpcpp/ext/proto_server_reflection_plugin.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
deps = [
"grpc++",
"grpc++_config_proto",
"//src/proto/grpc/reflection/v1alpha:reflection_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_call_metric_recorder",
external_deps = [
"absl/strings",
"absl/types:optional",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/call_metric_recorder.h",
],
visibility = ["@grpc:public"],
deps = ["grpc++_public_hdrs"],
)
grpc_cc_library(
name = "grpcpp_backend_metric_recorder",
srcs = [
"src/cpp/server/backend_metric_recorder.cc",
],
hdrs = [
"src/cpp/server/backend_metric_recorder.h",
],
external_deps = [
"absl/base:core_headers",
"absl/strings",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/server_metric_recorder.h",
],
visibility = ["@grpc:public"],
deps = [
"gpr",
"grpc++_public_hdrs",
"grpc_trace",
"grpcpp_call_metric_recorder",
"//src/core:grpc_backend_metric_data",
"//src/core:grpc_backend_metric_provider",
],
)
grpc_cc_library(
name = "grpcpp_orca_service",
srcs = [
"src/cpp/server/orca/orca_service.cc",
],
external_deps = [
"absl/base:core_headers",
"absl/strings",
"absl/time",
"absl/types:optional",
"upb_lib",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/orca_service.h",
],
visibility = ["@grpc:public"],
deps = [
"debug_location",
"exec_ctx",
"gpr",
"grpc++",
"grpc_base",
"grpcpp_backend_metric_recorder",
"protobuf_duration_upb",
"ref_counted_ptr",
"xds_orca_service_upb",
"xds_orca_upb",
"//src/core:default_event_engine",
"//src/core:grpc_backend_metric_data",
"//src/core:ref_counted",
"//src/core:time",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_channelz",
srcs = [
"src/cpp/server/channelz/channelz_service.cc",
"src/cpp/server/channelz/channelz_service_plugin.cc",
],
hdrs = [
"src/cpp/server/channelz/channelz_service.h",
],
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/channelz_service_plugin.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:channelz"],
deps = [
"gpr",
"grpc",
"grpc++",
"grpc++_config_proto",
"//src/proto/grpc/channelz:channelz_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_csds",
srcs = [
"src/cpp/server/csds/csds.cc",
],
hdrs = [
"src/cpp/server/csds/csds.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"grpc",
"grpc++_base",
"//src/proto/grpc/testing/xds/v3:csds_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_admin",
srcs = [
"src/cpp/server/admin/admin_services.cc",
],
hdrs = [],
defines = select({
":grpc_no_xds": ["GRPC_NO_XDS"],
"//conditions:default": [],
}),
external_deps = [
"absl/memory",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/admin_services.h",
],
select_deps = [{
":grpc_no_xds": [],
"//conditions:default": ["//:grpcpp_csds"],
}],
deps = [
"gpr",
"grpc++",
"grpcpp_channelz",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpc++_test",
testonly = True,
srcs = [
"src/cpp/client/channel_test_peer.cc",
],
external_deps = ["gtest"],
public_hdrs = [
"include/grpc++/test/mock_stream.h",
"include/grpc++/test/server_context_test_spouse.h",
"include/grpcpp/test/channel_test_peer.h",
"include/grpcpp/test/client_context_test_peer.h",
"include/grpcpp/test/default_reactor_test_peer.h",
"include/grpcpp/test/mock_stream.h",
"include/grpcpp/test/server_context_test_spouse.h",
],
visibility = ["@grpc:grpc++_test"],
deps = [
"grpc++",
"grpc_base",
],
)
grpc_cc_library(
name = "grpc_opencensus_plugin",
srcs = [
"src/cpp/ext/filters/census/client_filter.cc",
"src/cpp/ext/filters/census/context.cc",
"src/cpp/ext/filters/census/grpc_plugin.cc",
"src/cpp/ext/filters/census/measures.cc",
"src/cpp/ext/filters/census/rpc_encoding.cc",
OpenCensus: Use new CallTracer interfaces (#32618) This change mostly aims to get OpenCensus to use the new ServerCallTracer interface. Note that the interfaces nor the code are in their final states. There are a bunch of moving pieces, but I thought this might be a nice mid-step to check-in and make sure that our internal traces can also work with these changes. Overall changes - 1) call_tracer.h shows what the hierarchy of new call tracer interfaces looks like. Open to renaming suggestions. 2) Moved most of the common interface between `CallAttemptTracer` and `ServerCallTracer` into a common `CallTracerInterface`. We should be able to eventually move `RecordReceivedTrailingMetadata` and `RecordEnd` as well to these common interfaces, but it requires some additional work. 3) The compression filter is now responsible for recording the recv and send messages for both the subchannel call and the server, and adds in ability to record compressed and decompressed messages as well. 4) The OpenCensus server filter now uses the new `ServerCallTracer` interface, and so doesn't need to be a filter anymore. 5) A new ServerCallTracerFilter was added. Ideally, we should be able to move it to the current connected filter, but it is in a bit of an interesting state right now, so I would prefer making those changes in a separate PR with Craig's eyes on it. 6) A new context element `GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE` was created that replaces the old `GRPC_CONTEXT_CALL_TRACER`, and the new `GRPC_CONTEXT_CALL_TRACER` is mainly to pass the `CallAttemptTracer` down the stack. This should go away in the new promise-based world. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/grpc/grpc/32618) <!-- Reviewable:end -->
2 years ago
"src/cpp/ext/filters/census/server_call_tracer.cc",
"src/cpp/ext/filters/census/views.cc",
],
hdrs = [
"include/grpcpp/opencensus.h",
"src/cpp/ext/filters/census/client_filter.h",
"src/cpp/ext/filters/census/context.h",
"src/cpp/ext/filters/census/grpc_plugin.h",
"src/cpp/ext/filters/census/measures.h",
"src/cpp/ext/filters/census/open_census_call_tracer.h",
"src/cpp/ext/filters/census/rpc_encoding.h",
OpenCensus: Use new CallTracer interfaces (#32618) This change mostly aims to get OpenCensus to use the new ServerCallTracer interface. Note that the interfaces nor the code are in their final states. There are a bunch of moving pieces, but I thought this might be a nice mid-step to check-in and make sure that our internal traces can also work with these changes. Overall changes - 1) call_tracer.h shows what the hierarchy of new call tracer interfaces looks like. Open to renaming suggestions. 2) Moved most of the common interface between `CallAttemptTracer` and `ServerCallTracer` into a common `CallTracerInterface`. We should be able to eventually move `RecordReceivedTrailingMetadata` and `RecordEnd` as well to these common interfaces, but it requires some additional work. 3) The compression filter is now responsible for recording the recv and send messages for both the subchannel call and the server, and adds in ability to record compressed and decompressed messages as well. 4) The OpenCensus server filter now uses the new `ServerCallTracer` interface, and so doesn't need to be a filter anymore. 5) A new ServerCallTracerFilter was added. Ideally, we should be able to move it to the current connected filter, but it is in a bit of an interesting state right now, so I would prefer making those changes in a separate PR with Craig's eyes on it. 6) A new context element `GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE` was created that replaces the old `GRPC_CONTEXT_CALL_TRACER`, and the new `GRPC_CONTEXT_CALL_TRACER` is mainly to pass the `CallAttemptTracer` down the stack. This should go away in the new promise-based world. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/grpc/grpc/32618) <!-- Reviewable:end -->
2 years ago
"src/cpp/ext/filters/census/server_call_tracer.h",
],
external_deps = [
"absl/base",
"absl/base:core_headers",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"opencensus-stats",
"opencensus-tags",
"opencensus-tags-context_util",
"opencensus-trace",
"opencensus-trace-context_util",
"opencensus-trace-propagation",
"opencensus-trace-span_context",
],
language = "c++",
visibility = ["@grpc:grpc_opencensus_plugin"],
deps = [
"channel_stack_builder",
"config",
"gpr",
"grpc++_base",
"grpc_base",
"grpc_public_hdrs",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
"//src/core:context",
"//src/core:error",
"//src/core:experiments",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
],
)
# This is an EXPERIMENTAL target subject to change.
grpc_cc_library(
name = "grpcpp_gcp_observability",
hdrs = [
"include/grpcpp/ext/gcp_observability.h",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:grpcpp_gcp_observability"],
deps = [
"//src/cpp/ext/gcp:observability",
],
)
grpc_cc_library(
name = "work_serializer",
srcs = [
"//src/core:lib/gprpp/work_serializer.cc",
],
hdrs = [
"//src/core:lib/gprpp/work_serializer.h",
],
external_deps = ["absl/base:core_headers"],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"debug_location",
"gpr",
"grpc_trace",
"orphanable",
],
)
grpc_cc_library(
name = "grpc_trace",
srcs = ["//src/core:lib/debug/trace.cc"],
hdrs = ["//src/core:lib/debug/trace.h"],
language = "c++",
visibility = ["@grpc:trace"],
deps = [
"gpr",
"grpc_public_hdrs",
],
)
grpc_cc_library(
name = "config",
srcs = [
"//src/core:lib/config/core_configuration.cc",
],
language = "c++",
public_hdrs = [
"//src/core:lib/config/core_configuration.h",
],
visibility = ["@grpc:client_channel"],
deps = [
"gpr",
"grpc_resolver",
"//src/core:certificate_provider_registry",
"//src/core:channel_args_preconditioning",
"//src/core:channel_creds_registry",
"//src/core:channel_init",
"//src/core:handshaker_registry",
"//src/core:lb_policy_registry",
"//src/core:proxy_mapper_registry",
"//src/core:service_config_parser",
],
)
grpc_cc_library(
name = "debug_location",
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/debug_location.h"],
visibility = ["@grpc:debug_location"],
)
grpc_cc_library(
name = "orphanable",
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/orphanable.h"],
visibility = [
"@grpc:client_channel",
"@grpc:xds_client_core",
],
deps = [
"debug_location",
"gpr_platform",
"ref_counted_ptr",
"//src/core:ref_counted",
],
)
Basic class definition and constructor Cel eval engine Merge remote-tracking branch 'upstream/master' into celeval_constructor Iterate through policies and store CEL condition git push origin ce Merge remote-tracking branch 'upstream/master' into celeval_constructor added class and constructor comments for CelEvaluationEngine CelEvaluationEngine class and constructor Added cel_evaluation_engine to build ran clang_tidy_code.sh updated BUILD with cel_evaluation_engine added rbac.upb.h/cc to BUILD Rewrote cel_evaluation_engine code with upb conventions removed unnecessary deps for cel_evaluation_engine in BUILD Cel_evaluation_engine uses arenas to manage condition pointers Used upb::Arena instead of upb_arena*, added temp_arena to save memory Added action_allow_ member variable Added fullstops to comments initialize action_allow_ changed variable names to be more clear removed unnecessary headers correctly initialize the action_allow_ variable changed constructor to use an initializer list ran clang_tidy and clang_format scripts added cel_engine_test resolved merge conflicts and rewrote cel engine constructor to use new map api changed variables to be more clear and made them const changed syntax.upb.h so the build succeeds changed syntax.upb.h so the build succeeds changed version of upb in bazel_dpes regenerated upb files with new upb version added TODO regarding two-policy design modified CelEvaluationEngine and tests to use two rbac policies Made test messages consistent and added a case with too many policies changed name from cel_engine to authorization_engine fixed merge issues and updated authorization engine to v3 rbac made constructor public and added namespace grpc_core
4 years ago
grpc_cc_library(
name = "promise",
external_deps = [
"absl/status",
"absl/types:optional",
],
language = "c++",
public_hdrs = [
"//src/core:lib/promise/promise.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr_platform",
"//src/core:poll",
"//src/core:promise_like",
],
)
grpc_cc_library(
name = "ref_counted_ptr",
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/ref_counted_ptr.h"],
visibility = ["@grpc:ref_counted_ptr"],
deps = [
"debug_location",
"gpr_platform",
],
)
grpc_cc_library(
name = "handshaker",
srcs = [
"//src/core:lib/transport/handshaker.cc",
],
external_deps = [
"absl/base:core_headers",
"absl/container:inlined_vector",
"absl/status",
"absl/strings:str_format",
],
language = "c++",
public_hdrs = [
"//src/core:lib/transport/handshaker.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"debug_location",
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:status_helper",
"//src/core:time",
],
)
grpc_cc_library(
name = "http_connect_handshaker",
srcs = [
"//src/core:lib/transport/http_connect_handshaker.cc",
Basic class definition and constructor Cel eval engine Merge remote-tracking branch 'upstream/master' into celeval_constructor Iterate through policies and store CEL condition git push origin ce Merge remote-tracking branch 'upstream/master' into celeval_constructor added class and constructor comments for CelEvaluationEngine CelEvaluationEngine class and constructor Added cel_evaluation_engine to build ran clang_tidy_code.sh updated BUILD with cel_evaluation_engine added rbac.upb.h/cc to BUILD Rewrote cel_evaluation_engine code with upb conventions removed unnecessary deps for cel_evaluation_engine in BUILD Cel_evaluation_engine uses arenas to manage condition pointers Used upb::Arena instead of upb_arena*, added temp_arena to save memory Added action_allow_ member variable Added fullstops to comments initialize action_allow_ changed variable names to be more clear removed unnecessary headers correctly initialize the action_allow_ variable changed constructor to use an initializer list ran clang_tidy and clang_format scripts added cel_engine_test resolved merge conflicts and rewrote cel engine constructor to use new map api changed variables to be more clear and made them const changed syntax.upb.h so the build succeeds changed syntax.upb.h so the build succeeds changed version of upb in bazel_dpes regenerated upb files with new upb version added TODO regarding two-policy design modified CelEvaluationEngine and tests to use two rbac policies Made test messages consistent and added a case with too many policies changed name from cel_engine to authorization_engine fixed merge issues and updated authorization engine to v3 rbac made constructor public and added namespace grpc_core
4 years ago
],
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/strings",
"absl/types:optional",
],
Basic class definition and constructor Cel eval engine Merge remote-tracking branch 'upstream/master' into celeval_constructor Iterate through policies and store CEL condition git push origin ce Merge remote-tracking branch 'upstream/master' into celeval_constructor added class and constructor comments for CelEvaluationEngine CelEvaluationEngine class and constructor Added cel_evaluation_engine to build ran clang_tidy_code.sh updated BUILD with cel_evaluation_engine added rbac.upb.h/cc to BUILD Rewrote cel_evaluation_engine code with upb conventions removed unnecessary deps for cel_evaluation_engine in BUILD Cel_evaluation_engine uses arenas to manage condition pointers Used upb::Arena instead of upb_arena*, added temp_arena to save memory Added action_allow_ member variable Added fullstops to comments initialize action_allow_ changed variable names to be more clear removed unnecessary headers correctly initialize the action_allow_ variable changed constructor to use an initializer list ran clang_tidy and clang_format scripts added cel_engine_test resolved merge conflicts and rewrote cel engine constructor to use new map api changed variables to be more clear and made them const changed syntax.upb.h so the build succeeds changed syntax.upb.h so the build succeeds changed version of upb in bazel_dpes regenerated upb files with new upb version added TODO regarding two-policy design modified CelEvaluationEngine and tests to use two rbac policies Made test messages consistent and added a case with too many policies changed name from cel_engine to authorization_engine fixed merge issues and updated authorization engine to v3 rbac made constructor public and added namespace grpc_core
4 years ago
language = "c++",
public_hdrs = [
"//src/core:lib/transport/http_connect_handshaker.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
Basic class definition and constructor Cel eval engine Merge remote-tracking branch 'upstream/master' into celeval_constructor Iterate through policies and store CEL condition git push origin ce Merge remote-tracking branch 'upstream/master' into celeval_constructor added class and constructor comments for CelEvaluationEngine CelEvaluationEngine class and constructor Added cel_evaluation_engine to build ran clang_tidy_code.sh updated BUILD with cel_evaluation_engine added rbac.upb.h/cc to BUILD Rewrote cel_evaluation_engine code with upb conventions removed unnecessary deps for cel_evaluation_engine in BUILD Cel_evaluation_engine uses arenas to manage condition pointers Used upb::Arena instead of upb_arena*, added temp_arena to save memory Added action_allow_ member variable Added fullstops to comments initialize action_allow_ changed variable names to be more clear removed unnecessary headers correctly initialize the action_allow_ variable changed constructor to use an initializer list ran clang_tidy and clang_format scripts added cel_engine_test resolved merge conflicts and rewrote cel engine constructor to use new map api changed variables to be more clear and made them const changed syntax.upb.h so the build succeeds changed syntax.upb.h so the build succeeds changed version of upb in bazel_dpes regenerated upb files with new upb version added TODO regarding two-policy design modified CelEvaluationEngine and tests to use two rbac policies Made test messages consistent and added a case with too many policies changed name from cel_engine to authorization_engine fixed merge issues and updated authorization engine to v3 rbac made constructor public and added namespace grpc_core
4 years ago
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"handshaker",
"httpcli",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:handshaker_factory",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:slice",
"//src/core:slice_buffer",
],
)
grpc_cc_library(
name = "exec_ctx",
srcs = [
"//src/core:lib/iomgr/combiner.cc",
"//src/core:lib/iomgr/exec_ctx.cc",
"//src/core:lib/iomgr/executor.cc",
"//src/core:lib/iomgr/iomgr_internal.cc",
],
hdrs = [
"//src/core:lib/iomgr/combiner.h",
"//src/core:lib/iomgr/exec_ctx.h",
"//src/core:lib/iomgr/executor.h",
"//src/core:lib/iomgr/iomgr_internal.h",
],
external_deps = ["absl/strings:str_format"],
visibility = [
"@grpc:alt_grpc_base_legacy",
"@grpc:exec_ctx",
],
deps = [
"debug_location",
"gpr",
"grpc_public_hdrs",
"grpc_trace",
"//src/core:closure",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_spinlock",
"//src/core:time",
"//src/core:useful",
],
)
grpc_cc_library(
name = "sockaddr_utils",
srcs = [
"//src/core:lib/address_utils/sockaddr_utils.cc",
],
hdrs = [
"//src/core:lib/address_utils/sockaddr_utils.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"uri_parser",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_port",
"//src/core:resolved_address",
],
)
grpc_cc_library(
name = "iomgr_timer",
srcs = [
"//src/core:lib/iomgr/timer.cc",
"//src/core:lib/iomgr/timer_generic.cc",
"//src/core:lib/iomgr/timer_heap.cc",
"//src/core:lib/iomgr/timer_manager.cc",
],
hdrs = [
"//src/core:lib/iomgr/timer.h",
"//src/core:lib/iomgr/timer_generic.h",
"//src/core:lib/iomgr/timer_heap.h",
"//src/core:lib/iomgr/timer_manager.h",
] + [
# TODO(hork): deduplicate
"//src/core:lib/iomgr/iomgr.h",
],
external_deps = [
"absl/strings",
"absl/strings:str_format",
],
tags = ["nofixdeps"],
visibility = ["@grpc:iomgr_timer"],
deps = [
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"gpr_platform",
"grpc_trace",
"//src/core:closure",
"//src/core:gpr_manual_constructor",
"//src/core:gpr_spinlock",
"//src/core:iomgr_port",
"//src/core:time",
"//src/core:time_averaged_stats",
"//src/core:useful",
],
)
grpc_cc_library(
name = "uri_parser",
8 years ago
srcs = [
"//src/core:lib/uri/uri_parser.cc",
],
hdrs = [
"//src/core:lib/uri/uri_parser.h",
8 years ago
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
8 years ago
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = ["gpr"],
)
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
grpc_cc_library(
name = "parse_address",
srcs = [
"//src/core:lib/address_utils/parse_address.cc",
"//src/core:lib/iomgr/grpc_if_nametoindex_posix.cc",
"//src/core:lib/iomgr/grpc_if_nametoindex_unsupported.cc",
],
hdrs = [
"//src/core:lib/address_utils/parse_address.h",
"//src/core:lib/iomgr/grpc_if_nametoindex.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"uri_parser",
"//src/core:error",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_port",
"//src/core:resolved_address",
"//src/core:status_helper",
],
)
grpc_cc_library(
name = "backoff",
srcs = [
"//src/core:lib/backoff/backoff.cc",
],
hdrs = [
"//src/core:lib/backoff/backoff.h",
],
external_deps = ["absl/random"],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr_platform",
"//src/core:time",
],
)
grpc_cc_library(
name = "stats",
srcs = [
"//src/core:lib/debug/stats.cc",
],
hdrs = [
"//src/core:lib/debug/stats.h",
],
external_deps = [
"absl/strings",
"absl/types:span",
],
visibility = [
"@grpc:alt_grpc_base_legacy",
],
deps = [
"gpr",
"//src/core:histogram_view",
"//src/core:no_destruct",
"//src/core:stats_data",
8 years ago
],
)
grpc_cc_library(
name = "channel_stack_builder",
srcs = [
"//src/core:lib/channel/channel_stack_builder.cc",
],
hdrs = [
"//src/core:lib/channel/channel_stack_builder.h",
],
external_deps = [
"absl/status:statusor",
"absl/strings",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
"//src/core:transport_fwd",
],
)
grpc_cc_library(
name = "grpc_service_config_impl",
srcs = [
"//src/core:lib/service_config/service_config_impl.cc",
],
hdrs = [
"//src/core:lib/service_config/service_config_impl.h",
],
external_deps = [
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"config",
"gpr",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:grpc_service_config",
"//src/core:json",
"//src/core:json_args",
"//src/core:json_object_loader",
"//src/core:service_config_parser",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:validation_errors",
],
)
grpc_cc_library(
name = "server_address",
srcs = [
"//src/core:lib/resolver/server_address.cc",
],
hdrs = [
"//src/core:lib/resolver/server_address.h",
],
8 years ago
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
8 years ago
],
language = "c++",
visibility = ["@grpc:client_channel"],
8 years ago
deps = [
"gpr_platform",
"sockaddr_utils",
"//src/core:channel_args",
"//src/core:resolved_address",
"//src/core:useful",
8 years ago
],
)
grpc_cc_library(
name = "grpc_resolver",
srcs = [
"//src/core:lib/resolver/resolver.cc",
"//src/core:lib/resolver/resolver_registry.cc",
],
hdrs = [
"//src/core:lib/resolver/resolver.h",
"//src/core:lib/resolver/resolver_factory.h",
"//src/core:lib/resolver/resolver_registry.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
],
8 years ago
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"gpr",
"grpc_trace",
"orphanable",
"ref_counted_ptr",
"server_address",
"uri_parser",
"//src/core:channel_args",
"//src/core:grpc_service_config",
"//src/core:iomgr_fwd",
],
)
grpc_cc_library(
name = "grpc_client_channel",
srcs = [
"//src/core:ext/filters/client_channel/backend_metric.cc",
"//src/core:ext/filters/client_channel/backup_poller.cc",
"//src/core:ext/filters/client_channel/channel_connectivity.cc",
"//src/core:ext/filters/client_channel/client_channel.cc",
"//src/core:ext/filters/client_channel/client_channel_channelz.cc",
"//src/core:ext/filters/client_channel/client_channel_factory.cc",
"//src/core:ext/filters/client_channel/client_channel_plugin.cc",
"//src/core:ext/filters/client_channel/client_channel_service_config.cc",
"//src/core:ext/filters/client_channel/config_selector.cc",
"//src/core:ext/filters/client_channel/dynamic_filters.cc",
"//src/core:ext/filters/client_channel/global_subchannel_pool.cc",
"//src/core:ext/filters/client_channel/health/health_check_client.cc",
"//src/core:ext/filters/client_channel/http_proxy.cc",
"//src/core:ext/filters/client_channel/lb_policy/child_policy_handler.cc",
"//src/core:ext/filters/client_channel/lb_policy/oob_backend_metric.cc",
"//src/core:ext/filters/client_channel/local_subchannel_pool.cc",
"//src/core:ext/filters/client_channel/retry_filter.cc",
"//src/core:ext/filters/client_channel/retry_service_config.cc",
"//src/core:ext/filters/client_channel/retry_throttle.cc",
"//src/core:ext/filters/client_channel/service_config_channel_arg_filter.cc",
"//src/core:ext/filters/client_channel/subchannel.cc",
"//src/core:ext/filters/client_channel/subchannel_pool_interface.cc",
"//src/core:ext/filters/client_channel/subchannel_stream_client.cc",
],
hdrs = [
"//src/core:ext/filters/client_channel/backend_metric.h",
"//src/core:ext/filters/client_channel/backup_poller.h",
"//src/core:ext/filters/client_channel/client_channel.h",
"//src/core:ext/filters/client_channel/client_channel_channelz.h",
"//src/core:ext/filters/client_channel/client_channel_factory.h",
"//src/core:ext/filters/client_channel/client_channel_internal.h",
"//src/core:ext/filters/client_channel/client_channel_service_config.h",
"//src/core:ext/filters/client_channel/config_selector.h",
"//src/core:ext/filters/client_channel/connector.h",
"//src/core:ext/filters/client_channel/dynamic_filters.h",
"//src/core:ext/filters/client_channel/global_subchannel_pool.h",
"//src/core:ext/filters/client_channel/health/health_check_client.h",
"//src/core:ext/filters/client_channel/http_proxy.h",
"//src/core:ext/filters/client_channel/lb_policy/child_policy_handler.h",
"//src/core:ext/filters/client_channel/lb_policy/oob_backend_metric.h",
WRR: implement WRR LB policy (#31904) * WRR: port StaticStrideScheduler to OSS * WIP * Automated change: Fix sanity tests * fix build * remove unused aliases * fix another type mismatch * remove unnecessary include * move benchmarks to their own file, and don't run it on windows * Automated change: Fix sanity tests * add OOB reporting * generate_projects * clang-format * add config parser test * clang-tidy and minimize lock contention * add config defaults * add oob_reporting_period config field and add basic test * Automated change: Fix sanity tests * fix test * change test to use basic RR * WIP: started exposing peer address to LB policy API * first WRR test passing! * small cleanup * port RR fix to WRR * test helper refactoring * more test helper refactoring * WIP: trying to fix test to have the right weights * more WIP -- need to make pickers DualRefCounted * fix timer ref handling and get tests working * clang-format * iwyu and generate_projects * fix build * add test for OOB reporting * keep only READY subchannels in the picker * add file missed in a previous commit * fix sanity * iwyu * add weight expiration period * add tests for weight update period and OOB reporting period * Automated change: Fix sanity tests * lower bound for timer interval * consistently apply grpc_test_slowdown_factor() * cache time in test * add blackout_period tests * avoid some unnecessary copies * clang-format * add field to config test * simplify orca watcher tracking * attempt to fix build * iwyu * generate_projects * add "_experimental" suffix to policy name * WRR: update tests to cover qps plumbing * WIP * more WIP * basic WRR e2e test working * add OOB test * fix sanity * ignore duplicate addresses * Automated change: Fix sanity tests * add new tracer to doc/environment_variables.md * retain scheduler state across pickers * Automated change: Fix sanity tests * use separate mutexes for scheduler and timer * sort addresses to avoid index churn * remove fetch_sub for wrap around in RR case Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"//src/core:ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h",
"//src/core:ext/filters/client_channel/local_subchannel_pool.h",
"//src/core:ext/filters/client_channel/retry_filter.h",
"//src/core:ext/filters/client_channel/retry_service_config.h",
"//src/core:ext/filters/client_channel/retry_throttle.h",
"//src/core:ext/filters/client_channel/subchannel.h",
"//src/core:ext/filters/client_channel/subchannel_interface_internal.h",
"//src/core:ext/filters/client_channel/subchannel_pool_interface.h",
"//src/core:ext/filters/client_channel/subchannel_stream_client.h",
],
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
Second attempt: client channel: don't hold mutexes while calling the ConfigSelector or the LB picker (#32326) Original attempt was #31973, reverted in #32324 due to test flakiness. There were two problems causing test flakiness here. The first problem was that, upon resolver error, we were dispatching an async callback to re-process each of the queued picks *before* we updated the channel's connectivity state, which meant that the queued picks might be re-processed in another thread before the new connectivity state was set, so tests that expected the state to be TRANSIENT_FAILURE once RPCs failed might not see the expected state. The second problem affected the xDS ring hash tests, and it's a bit more involved to explain. We have an e2e test that simulates an aggregate cluster failover from a primary cluster using ring_hash at startup. The primary cluster has two addresses, both of which are unreachable when the client starts up, so the client should immediately fail over to the secondary cluster, which does have reachable endpoints. The test requires that no RPCs are failed while this failover occurs. The original PR made this test flaky. The problem here was caused by a combination of two factors: 1. Prior to the original PR, when the picker was updated (which happens inside the WorkSerializer), we re-processed previously queued picks synchronously, so it was not possible for another subchannel connectivity state update (which also happens in the WorkSerializer) to be processed between the time that we updated the picker and the time that we re-processed the previously queued picks. The original PR changed this such that the queued picks are re-processed asynchronously (outside of the WorkSerializer), so it is now possible for a subchannel connectivity state update to be processed between when the picker is updated and when we re-process the previously queued picks. 2. Unlike most LB policies, where the picker does not see updated subchannel connectivity states until a new picker is created, the ring_hash picker gets the subchannel connectivity states from the LB policy via a lock, so it can wind up seeing the new states before it gets updated. This means that when a subchannel connectivity state update is processed by the ring_hash policy in the WorkSerializer, it will immediately be seen by the existing picker, even without a picker update. With those two points in mind, the sequence of events in the failing test were as follows: 1. The pick is attempted in the ring_hash picker for the primary cluster. This causes the first subchannel to attempt to connect. 2. The subchannel transitions from IDLE to CONNECTING. A new picker is returned due to the subchannel connectivity state change, and the channel retries the queued pick. The retried pick is done asynchronously, but in this case it does not matter: the call will be re-queued. 3. The connection attempt fails, and the subchannel reports TRANSIENT_FAILURE. A new picker is again returned, and the channel retries the queued pick. The retried pick is done asynchronously, but in this case it does not matter: this causes the picker to trigger a connection attempt for the second subchannel. 4. The second subchannel transitions from IDLE to CONNECTING. A new picker is again returned, and the channel retries the queued pick. The retried pick is done asynchronously, and in this case it *does* matter. 5. The second subchannel now transitions to TRANSIENT_FAILURE. The ring_hash policy will now report TRANSIENT_FAILURE, but before it can finish that... 6. ...In another thread, the channel now tries to re-process the queued pick using the CONNECTING picker from step 4. However, because the ring_hash policy has already seen the TRANSIENT_FAILURE report from the second subchannel, that picker will now fail the pick instead of queuing it. After discussion with @ejona86 and @dfawley (since this bug actually exists in Java and Go as well), we agreed that the right solution is to change the ring_hash picker to contain its own copy of the subchannel connectivity state information, rather than sharing that information with the LB policy using synchronization.
2 years ago
"absl/container:flat_hash_set",
"absl/container:inlined_vector",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:cord",
"absl/synchronization",
"absl/types:optional",
"absl/types:variant",
"upb_lib",
],
8 years ago
language = "c++",
visibility = ["@grpc:client_channel"],
8 years ago
deps = [
"backoff",
"channel_stack_builder",
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_health_upb",
"grpc_public_hdrs",
"grpc_resolver",
"grpc_service_config_impl",
"grpc_trace",
"http_connect_handshaker",
"iomgr_timer",
"orphanable",
"protobuf_duration_upb",
"ref_counted_ptr",
"server_address",
"sockaddr_utils",
"stats",
"uri_parser",
"work_serializer",
"xds_orca_service_upb",
"xds_orca_upb",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:construct_destruct",
"//src/core:dual_ref_counted",
"//src/core:env",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:grpc_backend_metric_data",
"//src/core:grpc_deadline_filter",
"//src/core:grpc_service_config",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:json",
"//src/core:json_args",
"//src/core:json_channel_args",
"//src/core:json_object_loader",
"//src/core:lb_policy",
"//src/core:lb_policy_registry",
"//src/core:memory_quota",
"//src/core:pollset_set",
"//src/core:proxy_mapper",
"//src/core:proxy_mapper_registry",
"//src/core:ref_counted",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:service_config_parser",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:subchannel_interface",
"//src/core:time",
"//src/core:transport_fwd",
"//src/core:unique_type_name",
"//src/core:useful",
"//src/core:validation_errors",
8 years ago
],
)
grpc_cc_library(
name = "grpc_resolver_dns_ares",
srcs = [
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc",
8 years ago
],
hdrs = [
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h",
"//src/core:ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h",
8 years ago
],
external_deps = [
"absl/base:core_headers",
"absl/container:flat_hash_set",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"address_sorting",
"cares",
],
8 years ago
language = "c++",
deps = [
"backoff",
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_grpclb_balancer_addresses",
"grpc_resolver",
"grpc_service_config_impl",
"grpc_trace",
"iomgr_timer",
"orphanable",
[EventEngine] Modify iomgr to allow creation of event engine clients and client side endpoints (#31661) * [WIP] EventEngine iomgr endpoint shims * [WIP] EventEngine::Endpoint iomgr shims for the PosixEventEngine * Util functions to help with posix engine listener implementation * sanity * update comments in posix_engine_listener_utils.h * review comments * iwyu * revert prev commit * iwyu * update build * update * regenerate projects * regenerate projects * minor fixes * update BUILD * sanity * update build * regenerate projects * fix unused parameter * sanity * update * sanity * regenerate_projects * remove unused variable * start * update * regenerate_projects * sanity * update * fixes * update * regenerate_projects * update * fix sanity and msan failure * more fixes * build failure * update * fix * sanity * fixes * update * regenerate projects * fix sanity * review comments * An EventEngine subclass to be implemented by all posix based event engines * sanity * comments * update * review comments * re-word * fix * update * review comments * regenerate projects * syntax fix * add lock free event benchmark * releasable mutex lock * fix build isue * update * start * regenerate projects * update * fix * windows build * update * windows portability issue * update * update * update * update * format * update * update * update * update * update * fix sanity * regenerate projects * update * iwyu * Fix resolved address length related bugs in tcp_socket_utils and listener_utils * iwyu * cleanup src/core/lib/event_engine/tcp_socket_utils.cc * iwyu * fix * regenerate projects * fix sanity * re-write endpoint shim * more re-write * cleanup * update * review comments * build issue * more build issue fixes plus adding event_engine_trace * even more build issue fixes * iwyu * add static_cast * update * remove redundant code * update * deduplicate * iwyu * Fix review comments and regenerate_projects * sanity * review comments * fix include guards Co-authored-by: AJ Heller <hork@google.com>
2 years ago
"parse_address",
"ref_counted_ptr",
"server_address",
"sockaddr_utils",
"uri_parser",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:event_engine_common",
"//src/core:grpc_resolver_dns_selection",
"//src/core:grpc_service_config",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:json",
"//src/core:polling_resolver",
"//src/core:pollset_set",
"//src/core:resolved_address",
"//src/core:slice",
"//src/core:status_helper",
"//src/core:time",
8 years ago
],
)
grpc_cc_library(
name = "httpcli",
srcs = [
"//src/core:lib/http/format_request.cc",
"//src/core:lib/http/httpcli.cc",
"//src/core:lib/http/parser.cc",
],
hdrs = [
"//src/core:lib/http/format_request.h",
"//src/core:lib/http/httpcli.h",
"//src/core:lib/http/parser.h",
],
external_deps = [
"absl/base:core_headers",
"absl/functional:bind_front",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:httpcli"],
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_trace",
"handshaker",
"orphanable",
"ref_counted_ptr",
"sockaddr_utils",
"uri_parser",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:closure",
"//src/core:error",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:pollset_set",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:tcp_connect_handshaker",
"//src/core:time",
],
)
grpc_cc_library(
name = "grpc_alts_credentials",
srcs = [
"//src/core:lib/security/credentials/alts/alts_credentials.cc",
"//src/core:lib/security/security_connector/alts/alts_security_connector.cc",
],
hdrs = [
"//src/core:lib/security/credentials/alts/alts_credentials.h",
"//src/core:lib/security/security_connector/alts/alts_security_connector.h",
],
external_deps = [
"absl/status",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"alts_util",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_security_base",
"handshaker",
"promise",
"ref_counted_ptr",
"tsi_alts_credentials",
"tsi_base",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:iomgr_fwd",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_fake_credentials",
srcs = [
"//src/core:tsi/fake_transport_security.cc",
],
hdrs = [
"//src/core:tsi/fake_transport_security.h",
],
language = "c++",
visibility = [
"@grpc:public",
],
deps = [
"gpr",
"tsi_base",
"//src/core:slice",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_jwt_credentials",
srcs = [
"//src/core:lib/security/credentials/jwt/json_token.cc",
"//src/core:lib/security/credentials/jwt/jwt_credentials.cc",
"//src/core:lib/security/credentials/jwt/jwt_verifier.cc",
],
hdrs = [
"//src/core:lib/security/credentials/jwt/json_token.h",
"//src/core:lib/security/credentials/jwt/jwt_credentials.h",
"//src/core:lib/security/credentials/jwt/jwt_verifier.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"exec_ctx",
"gpr",
"grpc_base",
"grpc_credentials_util",
"grpc_security_base",
"grpc_trace",
"httpcli",
"orphanable",
"promise",
"ref_counted_ptr",
"uri_parser",
"//src/core:arena_promise",
"//src/core:closure",
"//src/core:error",
"//src/core:gpr_manual_constructor",
"//src/core:httpcli_ssl_credentials",
"//src/core:iomgr_fwd",
"//src/core:json",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:time",
"//src/core:tsi_ssl_types",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_credentials_util",
srcs = [
"//src/core:lib/security/credentials/tls/tls_utils.cc",
"//src/core:lib/security/security_connector/load_system_roots_fallback.cc",
"//src/core:lib/security/security_connector/load_system_roots_supported.cc",
"//src/core:lib/security/util/json_util.cc",
],
hdrs = [
"//src/core:lib/security/credentials/tls/tls_utils.h",
"//src/core:lib/security/security_connector/load_system_roots.h",
"//src/core:lib/security/security_connector/load_system_roots_supported.h",
"//src/core:lib/security/util/json_util.h",
],
external_deps = ["absl/strings"],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"gpr",
"grpc_base",
"grpc_security_base",
"//src/core:error",
"//src/core:json",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_alts_credentials",
srcs = [
"//src/core:tsi/alts/handshaker/alts_handshaker_client.cc",
"//src/core:tsi/alts/handshaker/alts_shared_resource.cc",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker.cc",
"//src/core:tsi/alts/handshaker/alts_tsi_utils.cc",
],
hdrs = [
"//src/core:tsi/alts/handshaker/alts_handshaker_client.h",
"//src/core:tsi/alts/handshaker/alts_shared_resource.h",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker.h",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker_private.h",
"//src/core:tsi/alts/handshaker/alts_tsi_utils.h",
],
external_deps = ["upb_lib"],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"alts_upb",
"alts_util",
"gpr",
"grpc_base",
"grpc_security_base",
"tsi_alts_frame_protector",
"tsi_base",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:pollset_set",
"//src/core:slice",
],
)
grpc_cc_library(
name = "tsi_alts_frame_protector",
srcs = [
"//src/core:tsi/alts/crypt/aes_gcm.cc",
"//src/core:tsi/alts/crypt/gsec.cc",
"//src/core:tsi/alts/frame_protector/alts_counter.cc",
"//src/core:tsi/alts/frame_protector/alts_crypter.cc",
"//src/core:tsi/alts/frame_protector/alts_frame_protector.cc",
"//src/core:tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc",
"//src/core:tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc",
"//src/core:tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc",
"//src/core:tsi/alts/frame_protector/frame_handler.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc",
],
hdrs = [
"//src/core:tsi/alts/crypt/gsec.h",
"//src/core:tsi/alts/frame_protector/alts_counter.h",
"//src/core:tsi/alts/frame_protector/alts_crypter.h",
"//src/core:tsi/alts/frame_protector/alts_frame_protector.h",
"//src/core:tsi/alts/frame_protector/alts_record_protocol_crypter_common.h",
"//src/core:tsi/alts/frame_protector/frame_handler.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h",
],
external_deps = [
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"gpr_platform",
"tsi_base",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_ssl_session_cache",
srcs = [
"//src/core:tsi/ssl/session_cache/ssl_session_boringssl.cc",
"//src/core:tsi/ssl/session_cache/ssl_session_cache.cc",
"//src/core:tsi/ssl/session_cache/ssl_session_openssl.cc",
],
hdrs = [
"//src/core:tsi/ssl/session_cache/ssl_session.h",
"//src/core:tsi/ssl/session_cache/ssl_session_cache.h",
],
external_deps = [
"absl/memory",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"cpp_impl_of",
"gpr",
"grpc_public_hdrs",
"//src/core:ref_counted",
"//src/core:slice",
],
)
grpc_cc_library(
name = "tsi_ssl_credentials",
srcs = [
"//src/core:lib/security/security_connector/ssl_utils.cc",
"//src/core:lib/security/security_connector/ssl_utils_config.cc",
"//src/core:tsi/ssl/key_logging/ssl_key_logging.cc",
"//src/core:tsi/ssl_transport_security.cc",
"//src/core:tsi/ssl_transport_security_utils.cc",
],
hdrs = [
"//src/core:lib/security/security_connector/ssl_utils.h",
"//src/core:lib/security/security_connector/ssl_utils_config.h",
"//src/core:tsi/ssl/key_logging/ssl_key_logging.h",
"//src/core:tsi/ssl_transport_security.h",
"//src/core:tsi/ssl_transport_security_utils.h",
],
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/strings",
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"gpr",
"grpc_base",
"grpc_credentials_util",
"grpc_public_hdrs",
"grpc_security_base",
"ref_counted_ptr",
"tsi_base",
"tsi_ssl_session_cache",
"//src/core:channel_args",
"//src/core:error",
"//src/core:grpc_transport_chttp2_alpn",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:tsi_ssl_types",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_http_filters",
srcs = [
"//src/core:ext/filters/http/client/http_client_filter.cc",
"//src/core:ext/filters/http/http_filters_plugin.cc",
"//src/core:ext/filters/http/message_compress/compression_filter.cc",
"//src/core:ext/filters/http/server/http_server_filter.cc",
],
hdrs = [
"//src/core:ext/filters/http/client/http_client_filter.h",
"//src/core:ext/filters/http/message_compress/compression_filter.h",
"//src/core:ext/filters/http/server/http_server_filter.h",
],
external_deps = [
"absl/base:core_headers",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:http"],
deps = [
"channel_stack_builder",
"config",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"promise",
"//src/core:activity",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:context",
"//src/core:grpc_message_size_filter",
"//src/core:latch",
"//src/core:map",
"//src/core:percent_encoding",
"//src/core:pipe",
"//src/core:poll",
"//src/core:race",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:transport_fwd",
],
)
grpc_cc_library(
name = "grpc_grpclb_balancer_addresses",
srcs = [
"//src/core:ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc",
],
hdrs = [
"//src/core:ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h",
],
language = "c++",
visibility = ["@grpc:grpclb"],
deps = [
"gpr_platform",
"grpc_public_hdrs",
"server_address",
"//src/core:channel_args",
"//src/core:useful",
],
)
grpc_cc_library(
name = "xds_client",
srcs = [
"//src/core:ext/xds/xds_api.cc",
"//src/core:ext/xds/xds_bootstrap.cc",
"//src/core:ext/xds/xds_client.cc",
"//src/core:ext/xds/xds_client_stats.cc",
],
hdrs = [
"//src/core:ext/xds/xds_api.h",
"//src/core:ext/xds/xds_bootstrap.h",
"//src/core:ext/xds/xds_channel_args.h",
"//src/core:ext/xds/xds_client.h",
"//src/core:ext/xds/xds_client_stats.h",
"//src/core:ext/xds/xds_resource_type.h",
"//src/core:ext/xds/xds_resource_type_impl.h",
"//src/core:ext/xds/xds_transport.h",
],
external_deps = [
"absl/base:core_headers",
"absl/memory",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"upb_lib",
"upb_textformat_lib",
"upb_json_lib",
"upb_reflection",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:xds_client_core"],
deps = [
"backoff",
"debug_location",
"envoy_admin_upb",
"envoy_config_core_upb",
"envoy_config_endpoint_upb",
"envoy_service_discovery_upb",
"envoy_service_discovery_upbdefs",
"envoy_service_load_stats_upb",
"envoy_service_load_stats_upbdefs",
"envoy_service_status_upb",
"envoy_service_status_upbdefs",
"event_engine_base_hdrs",
"exec_ctx",
"google_rpc_status_upb",
"gpr",
"grpc_trace",
"orphanable",
"protobuf_any_upb",
"protobuf_duration_upb",
"protobuf_struct_upb",
"protobuf_timestamp_upb",
"ref_counted_ptr",
"uri_parser",
"work_serializer",
"//src/core:default_event_engine",
"//src/core:dual_ref_counted",
"//src/core:env",
"//src/core:json",
"//src/core:ref_counted",
"//src/core:time",
"//src/core:upb_utils",
"//src/core:useful",
],
)
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
grpc_cc_library(
name = "grpc_mock_cel",
hdrs = [
"//src/core:lib/security/authorization/mock_cel/activation.h",
"//src/core:lib/security/authorization/mock_cel/cel_expr_builder_factory.h",
"//src/core:lib/security/authorization/mock_cel/cel_expression.h",
"//src/core:lib/security/authorization/mock_cel/cel_value.h",
"//src/core:lib/security/authorization/mock_cel/evaluator_core.h",
"//src/core:lib/security/authorization/mock_cel/flat_expr_builder.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:span",
],
language = "c++",
deps = [
"google_type_expr_upb",
"gpr_public_hdrs",
],
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
)
grpc_cc_library(
name = "grpc_resolver_fake",
srcs = ["//src/core:ext/filters/client_channel/resolver/fake/fake_resolver.cc"],
hdrs = ["//src/core:ext/filters/client_channel/resolver/fake/fake_resolver.h"],
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
external_deps = [
"absl/base:core_headers",
"absl/status",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"absl/status:statusor",
"absl/strings",
],
language = "c++",
visibility = [
"//test:__subpackages__",
"@grpc:grpc_resolver_fake",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
],
deps = [
"config",
"debug_location",
"gpr",
"grpc_public_hdrs",
"grpc_resolver",
"orphanable",
LB policies: convert to new JSON API (#30468) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * update grpclb parsing * fix build * convert outlier_detection LB config * convert priority LB policy * convert ring_hash LB config * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * WIP on RLS parsing conversion * fix error message * Automated change: Fix sanity tests * fixed RLS parser tests * fix error prefix in OD, priority, and ring_hash policies * convert weighted_target policy * convert xds_cluster_manager * convert cds policy * convert xds_cluster_resolver * convert xds_cluster_impl * Automated change: Fix sanity tests * fix test * fix xds_cluster_impl drop config parsing * Automated change: Fix sanity tests * attempt to fix mac build * work around gcc6 problem * Automated change: Fix sanity tests * fix build * add mechanism to conditionally disable individual fields * fix build * Automated change: Fix sanity tests * fix move assignment operator * fix build * Automated change: Fix sanity tests * fix build and simplify RLS duplicate key check * Automated change: Fix sanity tests * Automated change: Fix sanity tests * fix build * iwyu * fix build * fix sanity * add LoadRefCountedFromJson() and use it to eliminate some moves * fix build * Automated change: Fix sanity tests Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"ref_counted_ptr",
"server_address",
"uri_parser",
"work_serializer",
"//src/core:channel_args",
"//src/core:grpc_service_config",
"//src/core:ref_counted",
"//src/core:useful",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
],
)
grpc_cc_library(
name = "chttp2_frame",
hdrs = [
"//src/core:ext/transport/chttp2/transport/frame.h",
],
deps = ["gpr"],
)
grpc_cc_library(
name = "http_trace",
srcs = [
"//src/core:ext/transport/chttp2/transport/http_trace.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/http_trace.h",
],
deps = [
"gpr_platform",
"grpc_trace",
],
)
grpc_cc_library(
name = "hpack_parser_table",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser_table.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser_table.h",
],
external_deps = [
"absl/status",
"absl/strings",
"absl/strings:str_format",
],
deps = [
"gpr",
"gpr_platform",
"grpc_base",
"grpc_trace",
"http_trace",
"//src/core:error",
"//src/core:hpack_constants",
"//src/core:no_destruct",
"//src/core:slice",
],
)
grpc_cc_library(
name = "hpack_parser",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser.h",
],
external_deps = [
"absl/base:core_headers",
"absl/status",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"absl/types:span",
"absl/types:variant",
],
deps = [
"chttp2_frame",
"gpr",
"gpr_platform",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"hpack_parser_table",
"stats",
"//src/core:decode_huff",
"//src/core:error",
"//src/core:hpack_constants",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
],
)
grpc_cc_library(
name = "hpack_encoder",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_encoder.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_encoder.h",
],
external_deps = ["absl/strings"],
deps = [
"chttp2_bin_encoder",
"chttp2_frame",
"chttp2_varint",
"gpr",
"gpr_platform",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"http_trace",
"//src/core:hpack_constants",
"//src/core:hpack_encoder_table",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:time",
],
)
grpc_cc_library(
name = "chttp2_bin_encoder",
srcs = [
"//src/core:ext/transport/chttp2/transport/bin_encoder.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/bin_encoder.h",
],
deps = [
"gpr",
"gpr_platform",
"//src/core:huffsyms",
"//src/core:slice",
],
)
grpc_cc_library(
name = "chttp2_varint",
srcs = [
"//src/core:ext/transport/chttp2/transport/varint.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/varint.h",
],
external_deps = ["absl/base:core_headers"],
deps = ["gpr"],
)
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
grpc_cc_library(
name = "grpc_transport_chttp2",
srcs = [
"//src/core:ext/transport/chttp2/transport/bin_decoder.cc",
"//src/core:ext/transport/chttp2/transport/chttp2_transport.cc",
"//src/core:ext/transport/chttp2/transport/context_list.cc",
"//src/core:ext/transport/chttp2/transport/frame_data.cc",
"//src/core:ext/transport/chttp2/transport/frame_goaway.cc",
"//src/core:ext/transport/chttp2/transport/frame_ping.cc",
"//src/core:ext/transport/chttp2/transport/frame_rst_stream.cc",
"//src/core:ext/transport/chttp2/transport/frame_settings.cc",
"//src/core:ext/transport/chttp2/transport/frame_window_update.cc",
"//src/core:ext/transport/chttp2/transport/parsing.cc",
"//src/core:ext/transport/chttp2/transport/stream_lists.cc",
"//src/core:ext/transport/chttp2/transport/stream_map.cc",
"//src/core:ext/transport/chttp2/transport/writing.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/bin_decoder.h",
"//src/core:ext/transport/chttp2/transport/chttp2_transport.h",
"//src/core:ext/transport/chttp2/transport/context_list.h",
"//src/core:ext/transport/chttp2/transport/frame_data.h",
"//src/core:ext/transport/chttp2/transport/frame_goaway.h",
"//src/core:ext/transport/chttp2/transport/frame_ping.h",
"//src/core:ext/transport/chttp2/transport/frame_rst_stream.h",
"//src/core:ext/transport/chttp2/transport/frame_settings.h",
"//src/core:ext/transport/chttp2/transport/frame_window_update.h",
"//src/core:ext/transport/chttp2/transport/internal.h",
"//src/core:ext/transport/chttp2/transport/stream_map.h",
],
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
external_deps = [
"absl/base:core_headers",
"absl/status",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"absl/strings",
"absl/strings:cord",
"absl/strings:str_format",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:grpclb"],
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
deps = [
"chttp2_frame",
"chttp2_varint",
"debug_location",
"exec_ctx",
Declarative JSON parser (#30442) * Declarative JSON parser * Automated change: Fix sanity tests * fix * shrinking stuff a little * static vtables * separate fns * simpler? * make maps work * windows fixes * Automated change: Fix sanity tests * simplify code * Automated change: Fix sanity tests * vtable-test * dont always create vec/map impls for every type * comments * make error consistent * move method private * progress * durations! * Automated change: Fix sanity tests * fix * fix * fix * Automated change: Fix sanity tests * post-load * Automated change: Fix sanity tests * document JsonPostLoad() and add static_assert * don't copy field names, to avoid length limitations * use absl::Status * accept either string or number for numeric values * add test for direct data member of another struct type * remove unused method * add support for retaining part of the JSON wirthout processing * update test for changes in Json::Parse() API * add absl::optional support * Automated change: Fix sanity tests * fix tests, improve error messages, and add overload to parse to existing object * remove overload of LoadFromJson() * change special case for Json to instead use Json::Object * fix build * improve error structure, add missing types, and improve tests * clang-format * Automated change: Fix sanity tests * fix build * add LoadJsonObjectField(), add LoadFromJson() overload that takes an ErrorList parameter, and add tests for parsing bare top-level types * fix msan * Automated change: Fix sanity tests * fix error message * Automated change: Fix sanity tests * add mechanism to conditionally disable individual fields * fix build Co-authored-by: Craig Tiller <craig.tiller@gmail.com> Co-authored-by: ctiller <ctiller@users.noreply.github.com> Co-authored-by: Craig Tiller <ctiller@google.com> Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2 years ago
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"hpack_encoder",
"hpack_parser",
"hpack_parser_table",
"http_trace",
"httpcli",
"iomgr_timer",
"ref_counted_ptr",
"stats",
"//src/core:arena",
"//src/core:bdp_estimator",
"//src/core:bitset",
"//src/core:channel_args",
"//src/core:chttp2_flow_control",
"//src/core:closure",
"//src/core:error",
"//src/core:experiments",
"//src/core:http2_errors",
"//src/core:http2_settings",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:memory_quota",
"//src/core:poll",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:resource_quota_trace",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:time",
"//src/core:transport_fwd",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpcpp_status",
srcs = [
"src/cpp/util/status.cc",
],
public_hdrs = [
"include/grpc++/support/status.h",
"include/grpcpp/impl/status.h",
"include/grpcpp/support/status.h",
"include/grpc++/impl/codegen/status.h",
"include/grpcpp/impl/codegen/status.h",
],
deps = [
"gpr_platform",
"grpc++_public_hdrs",
"grpc_public_hdrs",
],
)
# TODO(yashykt): Remove the UPB definitions from here once they are no longer needed
### UPB Targets
grpc_upb_proto_library(
name = "envoy_admin_upb",
deps = ["@envoy_api//envoy/admin/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_cluster_upb",
deps = ["@envoy_api//envoy/config/cluster/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_cluster_upbdefs",
deps = ["@envoy_api//envoy/config/cluster/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_core_upb",
deps = ["@envoy_api//envoy/config/core/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_endpoint_upb",
deps = ["@envoy_api//envoy/config/endpoint/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_endpoint_upbdefs",
deps = ["@envoy_api//envoy/config/endpoint/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_listener_upb",
deps = ["@envoy_api//envoy/config/listener/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_listener_upbdefs",
deps = ["@envoy_api//envoy/config/listener/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_rbac_upb",
deps = ["@envoy_api//envoy/config/rbac/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_route_upb",
deps = ["@envoy_api//envoy/config/route/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_route_upbdefs",
deps = ["@envoy_api//envoy/config/route/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_clusters_aggregate_upb",
deps = ["@envoy_api//envoy/extensions/clusters/aggregate/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_clusters_aggregate_upbdefs",
deps = ["@envoy_api//envoy/extensions/clusters/aggregate/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_common_fault_upb",
deps = ["@envoy_api//envoy/extensions/filters/common/fault/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_fault_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/fault/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_fault_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/fault/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_rbac_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/rbac/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_rbac_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/rbac/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_router_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/router/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_router_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/router/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_stateful_session_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/stateful_session/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_stateful_session_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/stateful_session/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_http_stateful_session_cookie_upb",
deps = ["@envoy_api//envoy/extensions/http/stateful_session/cookie/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_http_stateful_session_cookie_upbdefs",
deps = ["@envoy_api//envoy/extensions/http/stateful_session/cookie/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_http_upb",
deps = ["@envoy_api//envoy/type/http/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_ring_hash_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/ring_hash/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_wrr_locality_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/wrr_locality/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_network_http_connection_manager_upb",
deps = ["@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_network_http_connection_manager_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_transport_sockets_tls_upb",
deps = ["@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_transport_sockets_tls_upbdefs",
deps = ["@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_discovery_upb",
deps = ["@envoy_api//envoy/service/discovery/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_discovery_upbdefs",
deps = ["@envoy_api//envoy/service/discovery/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_load_stats_upb",
deps = ["@envoy_api//envoy/service/load_stats/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_load_stats_upbdefs",
deps = ["@envoy_api//envoy/service/load_stats/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_status_upb",
deps = ["@envoy_api//envoy/service/status/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_status_upbdefs",
deps = ["@envoy_api//envoy/service/status/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_matcher_upb",
deps = ["@envoy_api//envoy/type/matcher/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_upb",
deps = ["@envoy_api//envoy/type/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_type_upb",
deps = ["@com_github_cncf_udpa//xds/type/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "xds_type_upbdefs",
deps = ["@com_github_cncf_udpa//xds/type/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_orca_upb",
deps = ["@com_github_cncf_udpa//xds/data/orca/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_orca_service_upb",
deps = ["@com_github_cncf_udpa//xds/service/orca/v3:pkg"],
)
grpc_upb_proto_library(
name = "grpc_health_upb",
deps = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
)
grpc_upb_proto_library(
name = "google_rpc_status_upb",
deps = ["@com_google_googleapis//google/rpc:status_proto"],
)
grpc_upb_proto_reflection_library(
name = "google_rpc_status_upbdefs",
deps = ["@com_google_googleapis//google/rpc:status_proto"],
)
grpc_upb_proto_library(
name = "google_type_expr_upb",
deps = ["@com_google_googleapis//google/type:expr_proto"],
)
grpc_upb_proto_library(
5 years ago
name = "grpc_lb_upb",
deps = ["//src/proto/grpc/lb/v1:load_balancer_proto_descriptor"],
)
grpc_upb_proto_library(
name = "alts_upb",
deps = ["//src/proto/grpc/gcp:alts_handshaker_proto"],
)
grpc_upb_proto_library(
name = "rls_upb",
deps = ["//src/proto/grpc/lookup/v1:rls_proto_descriptor"],
)
grpc_upb_proto_library(
name = "rls_config_upb",
deps = ["//src/proto/grpc/lookup/v1:rls_config_proto_descriptor"],
)
grpc_upb_proto_reflection_library(
name = "rls_config_upbdefs",
deps = ["//src/proto/grpc/lookup/v1:rls_config_proto_descriptor"],
)
WELL_KNOWN_PROTO_TARGETS = [
"any",
"duration",
"empty",
"struct",
"timestamp",
"wrappers",
]
[grpc_upb_proto_library(
name = "protobuf_" + target + "_upb",
deps = ["@com_google_protobuf//:" + target + "_proto"],
) for target in WELL_KNOWN_PROTO_TARGETS]
[grpc_upb_proto_reflection_library(
name = "protobuf_" + target + "_upbdefs",
deps = ["@com_google_protobuf//:" + target + "_proto"],
) for target in WELL_KNOWN_PROTO_TARGETS]
grpc_generate_one_off_targets()
filegroup(
name = "root_certificates",
srcs = [
"etc/roots.pem",
],
visibility = ["//visibility:public"],
)