diff --git a/MODULE.bazel b/MODULE.bazel index b013fb86e..82667a5b6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -57,11 +57,6 @@ bazel_dep( version = "2025-11-05.bcr.1", repo_name = "com_googlesource_code_re2", ) -bazel_dep( - name = "flatbuffers", - version = "25.9.23", - repo_name = "com_github_google_flatbuffers", -) bazel_dep( name = "cel-spec", version = "0.25.2", diff --git a/tools/BUILD b/tools/BUILD index af006a67b..8b6ba13d9 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -74,41 +74,6 @@ cc_test( ], ) -cc_library( - name = "flatbuffers_backed_impl", - srcs = [ - "flatbuffers_backed_impl.cc", - ], - hdrs = [ - "flatbuffers_backed_impl.h", - ], - deps = [ - "//eval/public:cel_value", - "@com_github_google_flatbuffers//:flatbuffers", - "@com_google_absl//absl/status", - "@com_google_absl//absl/status:statusor", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:optional", - ], -) - -cc_test( - name = "flatbuffers_backed_impl_test", - size = "small", - srcs = [ - "flatbuffers_backed_impl_test.cc", - ], - data = [ - "//tools/testdata:flatbuffers_reflection_out", - ], - deps = [ - ":flatbuffers_backed_impl", - "//internal:status_macros", - "//internal:testing", - "@com_github_google_flatbuffers//:flatbuffers", - ], -) - cc_library( name = "navigable_ast", srcs = ["navigable_ast.cc"], diff --git a/tools/flatbuffers_backed_impl.h b/tools/flatbuffers_backed_impl.h index 7051ef5d5..bf02436ad 100644 --- a/tools/flatbuffers_backed_impl.h +++ b/tools/flatbuffers_backed_impl.h @@ -9,6 +9,10 @@ namespace api { namespace expr { namespace runtime { +// Reference implementation of CelMap backed by a flatbuffer table. +// +// To avoid taking a dependency on flatbuffers, this is not included in the +// bazel module or built by public CI. class FlatBuffersMapImpl : public CelMap { public: FlatBuffersMapImpl(const flatbuffers::Table& table, diff --git a/tools/testdata/BUILD b/tools/testdata/BUILD index c88c9c478..f9d8ea4b9 100644 --- a/tools/testdata/BUILD +++ b/tools/testdata/BUILD @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_library_public") load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") load("@rules_cc//cc:cc_library.bzl", "cc_library") @@ -21,14 +20,6 @@ licenses(["notice"]) package(default_visibility = ["//visibility:public"]) -flatbuffer_library_public( - name = "flatbuffers_test", - srcs = ["flatbuffers.fbs"], - outs = ["flatbuffers_generated.h"], - language_flag = "-c", - reflection_name = "flatbuffers_reflection", -) - filegroup( name = "coverage_testdata", srcs = [ @@ -37,15 +28,6 @@ filegroup( ], ) -cc_library( - name = "flatbuffers_test_cc", - srcs = [":flatbuffers_test"], - hdrs = [":flatbuffers_test"], - features = ["-parse_headers"], - linkstatic = True, - deps = ["@com_github_google_flatbuffers//:runtime_cc"], -) - proto_library( name = "test_policy_proto", srcs = ["test_policy.proto"],