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.
45 lines
994 B
45 lines
994 B
# This package contains tests exercising C++/Rust interop in the cpp kernel. |
|
|
|
load("@rules_rust//rust:defs.bzl", "rust_test") |
|
load("//bazel:cc_proto_library.bzl", "cc_proto_library") |
|
load( |
|
"//rust:defs.bzl", |
|
"rust_cc_proto_library", |
|
) |
|
|
|
cc_library( |
|
name = "test_utils", |
|
srcs = ["test_utils.cc"], |
|
deps = [ |
|
":interop_test_cc_proto", |
|
"//rust/cpp_kernel:cpp_api", |
|
"@com_google_absl//absl/log:absl_check", |
|
"@com_google_absl//absl/strings", |
|
], |
|
) |
|
|
|
rust_test( |
|
name = "interop_test", |
|
srcs = ["main.rs"], |
|
deps = [ |
|
":interop_test_cpp_rust_proto", |
|
":test_utils", |
|
"//rust:protobuf_cpp", |
|
"@crate_index//:googletest", |
|
], |
|
) |
|
|
|
proto_library( |
|
name = "interop_test_proto", |
|
srcs = ["interop_test.proto"], |
|
) |
|
|
|
cc_proto_library( |
|
name = "interop_test_cc_proto", |
|
deps = [":interop_test_proto"], |
|
) |
|
|
|
rust_cc_proto_library( |
|
name = "interop_test_cpp_rust_proto", |
|
deps = [":interop_test_proto"], |
|
)
|
|
|