blob: 7122ef11bee12b42fad0f21cf315b35feb816465 [file] [log] [blame]
load("//common:crubit_wrapper_macros_oss.bzl", "crubit_rust_test")
load("//rs_bindings_from_cc/test:test_bindings.bzl", "crubit_test_cc_library")
package(default_applicable_licenses = ["//:license"])
crubit_test_cc_library(
name = "has_bindings",
srcs = ["has_bindings.cc"],
hdrs = ["has_bindings.h"],
aspect_hints = ["//features:supported"],
deps = ["@abseil-cpp//absl/base:core_headers"],
)
crubit_test_cc_library(
name = "no_bindings",
hdrs = ["no_bindings.h"],
aspect_hints = ["//features:supported"],
)
crubit_rust_test(
name = "has_bindings_test",
srcs = ["has_bindings_test.rs"],
cc_deps = [
":has_bindings",
],
proc_macro_deps = [
"//common:item_exists",
],
deps = [
"//support:oops",
"//third_party/gtest_rust/googletest",
"@crate_index//:static_assertions",
],
)
crubit_rust_test(
name = "no_bindings_test",
srcs = ["no_bindings_test.rs"],
cc_deps = [
":no_bindings",
],
proc_macro_deps = [
"//common:item_exists",
],
deps = [
"//third_party/gtest_rust/googletest",
],
)