1# This package contains Rust protobuf runtime implementation built on top of the C++ backend. 2 3load("@rules_rust//rust:defs.bzl", "rust_library") 4 5cc_library( 6 name = "cpp_api", 7 srcs = [ 8 "compare.cc", 9 "debug.cc", 10 "map.cc", 11 "message.cc", 12 "repeated.cc", 13 "strings.cc", 14 ], 15 hdrs = [ 16 "compare.h", 17 "debug.h", 18 "map.h", 19 "rust_alloc_for_cpp_api.h", 20 "serialized_data.h", 21 "strings.h", 22 ], 23 visibility = [ 24 "//rust:__subpackages__", 25 "//src/google/protobuf:__subpackages__", 26 ], 27 deps = [ 28 ":rust_alloc_for_cpp_api", # buildcleaner: keep 29 "//src/google/protobuf", 30 "//src/google/protobuf:protobuf_lite", 31 "//src/google/protobuf/io", 32 "@com_google_absl//absl/log:absl_check", 33 "@com_google_absl//absl/log:absl_log", 34 "@com_google_absl//absl/strings:string_view", 35 ], 36) 37 38rust_library( 39 name = "rust_alloc_for_cpp_api", 40 srcs = ["rust_alloc_for_cpp_api.rs"], 41 visibility = [ 42 "//rust:__subpackages__", 43 ], 44) 45