Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
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.
40 lines
1000 B
40 lines
1000 B
# This package contains Rust protobuf runtime implementation built on top of the C++ backend. |
|
|
|
load("@rules_rust//rust:defs.bzl", "rust_library") |
|
|
|
cc_library( |
|
name = "cpp_api", |
|
srcs = [ |
|
"debug.cc", |
|
"map.cc", |
|
"repeated.cc", |
|
"strings.cc", |
|
], |
|
hdrs = [ |
|
"debug.h", |
|
"map.h", |
|
"rust_alloc_for_cpp_api.h", |
|
"serialized_data.h", |
|
"strings.h", |
|
], |
|
visibility = [ |
|
"//rust:__subpackages__", |
|
"//src/google/protobuf:__subpackages__", |
|
], |
|
deps = [ |
|
":rust_alloc_for_cpp_api", # buildcleaner: keep |
|
"//src/google/protobuf", |
|
"//src/google/protobuf:protobuf_lite", |
|
"@com_google_absl//absl/log:absl_check", |
|
"@com_google_absl//absl/log:absl_log", |
|
"@com_google_absl//absl/strings:string_view", |
|
], |
|
) |
|
|
|
rust_library( |
|
name = "rust_alloc_for_cpp_api", |
|
srcs = ["rust_alloc_for_cpp_api.rs"], |
|
visibility = [ |
|
"//rust:__subpackages__", |
|
], |
|
)
|
|
|